1234567891011121314151617 |
- const io = require('socket.io')();
- const nsp = io.of('/randomFree');
- class randomFree {
- constructor() {
- nsp.on('connection', function(socket){
- console.log('someone connected');
- });
- }
- join(user){
- //join randomFree queue room
- }
- }
- module.exports = new randomFree();
|