Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic path #28

Open
seifsallam opened this issue Jul 9, 2014 · 6 comments
Open

Dynamic path #28

seifsallam opened this issue Jul 9, 2014 · 6 comments

Comments

@seifsallam
Copy link

Is it possible to set path from controller/route for creating dynamic rooms?

@Wildhoney
Copy link
Owner

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.

@seifsallam
Copy link
Author

Sorry, I meant to say namespaces

@Wildhoney
Copy link
Owner

Dynamic namespaces?

@seifsallam
Copy link
Author

Yes. Like having a namespace for /analytics and another for /chat

@Wildhoney
Copy link
Owner

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.

@seifsallam
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants