Refactor user.js
This commit is contained in:
parent
1c79024984
commit
b5a45a25bf
2 changed files with 432 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ function handleConnection(sock) {
|
|||
user.name = sock.handshake.user.name;
|
||||
user.global_rank = sock.handshake.user.global_rank;
|
||||
user.loggedIn = true;
|
||||
user.emit("login");
|
||||
user.socket.emit("login", {
|
||||
success: true,
|
||||
name: user.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue