desperation

master
louisa 1 year ago
parent 362015e709
commit 0f20711b94

@ -18,7 +18,7 @@ server.listen(port, () => {
}); });
app.use(express.static(path.join(__dirname, "public"))); app.use(express.static(path.join(__dirname, "public")));
io.emit("blink");
var io = require('socket.io')(server); var io = require('socket.io')(server);
@ -26,6 +26,7 @@ var io = require('socket.io')(server);
io.on('connection', function(socket){ io.on('connection', function(socket){
console.log("A client connected!"); console.log("A client connected!");
parser.on('data', function(data) { parser.on('data', function(data) {
const msg = data.split(' '); const msg = data.split(' ');
console.log(msg[0], msg[1]); console.log(msg[0], msg[1]);

Loading…
Cancel
Save