Compare commits
No commits in common. "462bbac9ceb15333d3384f8c48db298ea485839d" and "9b4424c830fa772f18dea9dfd343f9eafca256df" have entirely different histories.
462bbac9ce
...
9b4424c830
3044
package-lock.json
generated
3044
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -129,13 +129,6 @@ io.on("connection", (socket) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("spectate", (data) => {
|
|
||||||
if (io.sockets.adapter.rooms.has(data)) {
|
|
||||||
console.log(traffic.in + colours.connect(`User ${String(socket.id)} is spectating room ${data}`));
|
|
||||||
socket.join(data);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
http.listen(port, () => {
|
http.listen(port, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user