API
ServerSocket(httpServer, options)
options
- heartbeatInterval -
- timeoutInterval -
ServerSocket:
Methods:
Protocol:
Client events:
connect
disconnect
close
message
join
leave
Packet format:
- [0, id, payload] - acknowlegment
- [1] - ping
- [2] - pong
- [3, id, room, name, payload] - user data