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?
Add Comment
Please, Sign In to add comment