applies to all
This commit is contained in:
parent
4a67b485b1
commit
252faa8188
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -137,7 +137,8 @@ wsServer.on("connection", function connection(socket) {
|
||||||
} else if (data.op == 4) {
|
} else if (data.op == 4) {
|
||||||
violetSpins += 1
|
violetSpins += 1
|
||||||
for (var i = 0; i < sockets.length; i++) {
|
for (var i = 0; i < sockets.length; i++) {
|
||||||
socket.send(`{"op": 4, "spins": ${violetSpins}}`)
|
var soc = sockets[i].socket
|
||||||
|
soc.send(`{"op": 4, "spins": ${violetSpins}}`)
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue