Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // w index.js robisz module.export = io;
- // i tam gdzie sie ma zaczynac gra to require('game.js')(socket.id);
- modules.export = function(socket.id){
- const io = require('index.js');
- io.to(socket.id).emit('elo');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement