randomFree.js 293 B

1234567891011121314151617
  1. const io = require('socket.io')();
  2. const nsp = io.of('/randomFree');
  3. class randomFree {
  4. constructor() {
  5. nsp.on('connection', function(socket){
  6. console.log('someone connected');
  7. });
  8. }
  9. join(user){
  10. //join randomFree queue room
  11. }
  12. }
  13. module.exports = new randomFree();