Work on user options
This commit is contained in:
parent
fc63191773
commit
9d49df6157
8 changed files with 197 additions and 258 deletions
|
|
@ -103,6 +103,11 @@ function handleConnection(sock) {
|
|||
user.name = sock.handshake.user.name;
|
||||
user.global_rank = sock.handshake.user.global_rank;
|
||||
user.loggedIn = true;
|
||||
user.socket.emit("login", {
|
||||
success: true,
|
||||
name: user.name
|
||||
});
|
||||
user.socket.emit("rank", user.global_rank);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue