You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
324 B
11 lines
324 B
//const io = require('socket.io')('http://localhost:3000');
|
|
const io = require('socket.io')('http://82.165.180.114:3000');
|
|
|
|
io.on('connection', socket => {
|
|
console.log("connection de l'utilisateur à l'id ". socket.id);
|
|
})
|
|
|
|
io.on('launchGame') , function () {
|
|
console.log('launch the game');
|
|
location.reload();
|
|
} |