From 0f20711b94d6fbb4793da21f272b84bde14df207 Mon Sep 17 00:00:00 2001 From: louisa Date: Wed, 14 Jun 2023 21:05:10 +0200 Subject: [PATCH] desperation --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 8de1410..9d5d840 100644 --- a/app.js +++ b/app.js @@ -18,13 +18,14 @@ server.listen(port, () => { }); app.use(express.static(path.join(__dirname, "public"))); - +io.emit("blink"); var io = require('socket.io')(server); //here we are listening to the data coming in from the modules, it's called node-data in the html io.on('connection', function(socket){ console.log("A client connected!"); + parser.on('data', function(data) { const msg = data.split(' ');