|
@@ -1,7 +1,17 @@
|
|
|
+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 = randomFree;
|
|
|
+module.exports = new randomFree();
|