phone
This commit is contained in:
parent
8555a4cb38
commit
fc3f261030
1 changed files with 3 additions and 3 deletions
|
@ -121,9 +121,9 @@ function deletePlayer(socket){
|
||||||
connections.delete(socket);
|
connections.delete(socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
function message(message, socket){
|
function message(msg, socket){
|
||||||
console.log(message, socket.id)
|
console.log(msg, socket.id)
|
||||||
broadcast(JSON.stringify(message), socket.id);
|
broadcast(JSON.stringify(msg), socket.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
function broadcast(message, exceptId = -1) {
|
function broadcast(message, exceptId = -1) {
|
||||||
|
|
Loading…
Reference in a new issue