new Client()
Sketchpad client methods
Methods
-
<static> onMessage(message)
-
Receive command message from this client
Parameters:
Name Type Description message
string JSON encoded message
-
<static> sendMsg(msg)
-
Sends message command to this client
Parameters:
Name Type Description msg
string Text message
-
<static> sendObj(obj)
-
Send custom object message to this client
Parameters:
Name Type Description obj
object Object message
-
<static> onClose()
-
Clear all client data from the server session. The Client must be initialised.