Class WebsocketIO
Class defined in:src/node-websocket.io.js:25
Client socket object
emit( name, data )
public/src/websocket.io.js:178
Send a message with a given name and payload (format> f:name d:payload)
Parameters:emit( name, data )
src/node-websocket.io.js:127
Send a message with a given name and payload (format> f:name d:payload)
Parameters:emitString( data )
src/node-websocket.io.js:191
Faster version for emit: No JSON stringigy and no check version
Parameters:-
data<String>data to be sent as the message
on( name, callback )
public/src/websocket.io.js:160
Set a message handler for a given name
Parameters:on( name, callback )
src/node-websocket.io.js:112
Set a message handler for a given name
Parameters:onclose( callback )
src/node-websocket.io.js:102
Setting a callback when the socket closes
Parameters:-
callback<Function>function to execute after closing
open( callback )
public/src/websocket.io.js:104
Open a websocket
Parameters:-
callback<Function>function to be called when the socket is ready
updateRemoteAddress( host, port )
src/node-websocket.io.js:221
Update the remote address of the client
Parameters:-
host<String>hostname / ip address
-
port<Integer>port number
localListeners <Object>public/src/websocket.io.js:64
list of local listeners on this side of connection
remoteListeners <Object>public/src/websocket.io.js:56
list of listeners on other side of connection
ws <WebSocket>public/src/websocket.io.js:32
websocket object handling the communication with the server
SAGE2: WebsocketIO