new Connector()
Methods
-
decode(data) → {Object}
-
Decode client message package. Package format: message id: 4bytes big-endian integer route length: 1byte route: route length bytes body: the rest bytes
Parameters:
Name Type Description data
String socket.io package from client Returns:
Object - message object -
start()
-
Start connector to listen the specified port
-
stop()
-
Stop connector