EmberSockets
EmberSockets copied to clipboard
Dynamic path
Is it possible to set path from controller/route
for creating dynamic rooms?
Setting up a room on Socket.io is done from the server side, so from the client emit
an event with the room name in the payload, and then listen for the event on server side, creating the appropriate room for the client.
Sorry, I meant to say namespaces
Dynamic namespaces?
Yes. Like having a namespace for /analytics
and another for /chat
Ah! No, currently no support for namespaces, but we could add it. How do you imagine we'd implement this? Adding a namespace
parameter in the bootstrap? Since the Socket.io client would need to initially connect to that namespace.
I think currently path
works as namespace. I was thinking maybe providing a hook for overriding the path value in a specific controller/route. I'm not sure how can this be implemented though.