a guest Dec 6th, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- a = io.of '/foo'
- b = io.of '/bar'
- a.on 'connect', (socket) ->
- # this adds `socket` to room 'kitchen' in namespace 'foo'
- socket.join 'kitchen'
- # how can I add `socket` to room 'kitchen' in namespace 'bar' instead?
RAW Paste Data