desperation

master
louisa 1 year ago
parent 362015e709
commit 0f20711b94

@ -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(' ');

Loading…
Cancel
Save