|
|
@ -35,9 +35,8 @@ var io = require('socket.io')(server);
|
|
|
|
|
|
|
|
|
|
|
|
socket.on("blink", () => {
|
|
|
|
socket.on("blink", () => {
|
|
|
|
console.log("Blink event received!");
|
|
|
|
console.log("Blink event received!");
|
|
|
|
io.emit("blink");
|
|
|
|
io.emit("blink"); // Emit the "blink" event to all connected clients
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// socket.on("message", (message) => {
|
|
|
|
// socket.on("message", (message) => {
|
|
|
|
// console.log("Received message:", message);
|
|
|
|
// console.log("Received message:", message);
|
|
|
|
// if (message === "blink") {
|
|
|
|
// if (message === "blink") {
|
|
|
|