Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Cache
indextrue
refresh100d
iddoc
showRefreshtrue
titleRefresh page
showDatetrue
retryEnable

 

 

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListINLINESmartClientsWordListINLINEWebClientsWordListINLINENGClient

 

 

servoy sSummary12%30%58%height: 30px;3Methods SummaryGet a broadcast object giving it a (nick)name and on a specific channel, the callback is used for getting messages of other clients on that channel The function gets 2 arguments (nickName, message)Returns the current client JSClientInformation object.Returns an array of JSClientInformation elements describing the clients connected to the server./* Returns an array of JSClientInformation elements describing the clients connected to the server filtered by the a client info string.Returns true if the server is in maintenance mode, false otherwise.voidSends a message to all connected clients.voidSends a message to a specific client, identified by its clientId.voidShuts down all connected clients.voidShuts down a specific client, identified by its clientId.

 

 

functionservoy sDetail2100%height:30px2Methods DetailsgetBroadcastername

getBroadcaster(name, channelName, callback)

dessIndent
Get a broadcast object giving it a (nick)name and on a specific channel, the callback is used for getting messages of other clients on that channel
The function gets 2 arguments (nickName, message)
prs

Parameters

sIndentnameThe nickname for this user on this channelchannelNameThe channel name where should be listened to (and send messages to)callbackThe callback when for incomming messages
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
getClientInformationname

getClientInformation()

dessIndent
Returns the current client JSClientInformation object.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
getConnectedClientsname

getConnectedClients()

dessIndent
Returns an array of JSClientInformation elements describing the clients connected to the server.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
getConnectedClientsname

getConnectedClients(clientInfoFilter)

dessIndent
/*
Returns an array of JSClientInformation elements describing the clients connected to the server filtered by the a client info string.
This way you can ask for a specific set of clients that have a specific information added to there client information.
prs

Parameters

sIndentclientInfoFilterThe filter string
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
isInMaintenanceModename

isInMaintenanceMode()

dessIndent
Returns true if the server is in maintenance mode, false otherwise.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
sendMessageToAllClientsname

sendMessageToAllClients(message)

dessIndent
Sends a message to all connected clients.
prs

Parameters

sIndentmessage;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
sendMessageToClientname

sendMessageToClient(clientId, message)

dessIndent
Sends a message to a specific client, identified by its clientId. The clientIds are retrieved by calling the getConnectedClients method.
prs

Parameters

sIndentclientId;message;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
shutDownAllClientsname

shutDownAllClients()

dessIndent
Shuts down all connected clients. This method returns immediately, it does not wait until the client shuts down.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
shutDownClientname

shutDownClient(clientId)

dessIndent
Shuts down a specific client, identified by its clientId. The clientIds are retrieved by calling the getConnectedClients method. This method returns immediately, it does not wait until the client shuts down.
prs

Parameters

sIndentclientId;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow