diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sockets.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockets.js b/lib/sockets.js index bd59ee38..8f67bc06 100644 --- a/lib/sockets.js +++ b/lib/sockets.js @@ -87,6 +87,7 @@ wss.on("connection", function(ws, req) { switch (type) { case "heartbeat": ws.beats = 0; + if (ws.user) emit(ws.user.username, "id", ws.id); break; case "login": |
