Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var io = require('socket.io').listen(6255);
- io.on('connection', function (socket) {
- console.log("ok")
- socket.on('controls', function(value) {
- //ACTION
- });
- socket.on('disconnect', function () {
- console.log("Utilisateur Déconnecté");
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement