Class Index | File Index

Classes


Class ComManager


Defined in: com-manager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ComManager(gameEngine)
Class ComManager
Method Summary
Method Attributes Method Name and Description
 
listen(port)
Server listens on a port
 
onConnect(connection)
Create a connection which is correspondant with a Client
 
send(to, message)
Send a message to a client or a group of clients.
Class Detail
ComManager(gameEngine)
Class ComManager
Parameters:
gameEngine
Method Detail
listen(port)
Server listens on a port
Parameters:
port
Port Number
Returns:
this

onConnect(connection)
Create a connection which is correspondant with a Client
Parameters:
connection
Socket Connection of a Client
Returns:
this

send(to, message)
Send a message to a client or a group of clients.
Parameters:
to
Can be a client ID or an array of client ID.
message
Message to send to each specified client.
Returns:
this

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Apr 05 2011 21:22:00 GMT+0200 (CEST)