redo the client user presence stuff

This commit is contained in:
Amish Shah
2016-09-27 17:57:39 +01:00
parent 38366f627d
commit 045153584a
5 changed files with 82 additions and 46 deletions

View File

@@ -112,6 +112,7 @@ class WebSocketManager extends EventEmitter {
_send(data) {
if (this.ws.readyState === WebSocket.OPEN) {
this.emit('send', data);
this.ws.send(data);
}
}