1234567891011121314151617 |
- const io = require('socket.io')(3555);
- 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();
|