Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. // w index.js robisz module.export = io;
  2. // i tam gdzie sie ma zaczynac gra to require('game.js')(socket.id);
  3. modules.export = function(socket.id){
  4.     const io = require('index.js');
  5.     io.to(socket.id).emit('elo');
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement