|
|
|
@ -33,7 +33,10 @@ var io = require('socket.io')(server);
|
|
|
|
|
io.emit('node-data', data);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
socket.on("blink", () => {
|
|
|
|
|
console.log("Blink event received!");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
socket.on("message", (message) => {
|
|
|
|
|
console.log("Received message:", message);
|
|
|
|
|
if (message === "blink") {
|
|
|
|
|