updates everyone
This commit is contained in:
parent
d5b6594d4b
commit
4a67b485b1
1 changed files with 4 additions and 1 deletions
5
index.js
5
index.js
|
@ -136,7 +136,10 @@ wsServer.on("connection", function connection(socket) {
|
||||||
socket.send(`{"op": 3}`)
|
socket.send(`{"op": 3}`)
|
||||||
} else if (data.op == 4) {
|
} else if (data.op == 4) {
|
||||||
violetSpins += 1
|
violetSpins += 1
|
||||||
socket.send(`{"op": 4, "spins": ${violetSpins}}`)
|
for (var i = 0; i < sockets.length; i++) {
|
||||||
|
socket.send(`{"op": 4, "spins": ${violetSpins}}`)
|
||||||
|
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue