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

[feat] Add support for dynamic namespaces #3187

Merged

Conversation

darrachequesne
Copy link
Member

Rebased from #1921.

@darrachequesne darrachequesne merged commit c0c79f0 into socketio:master Feb 28, 2018
@darrachequesne darrachequesne deleted the feat/dynamic-namespace branch February 28, 2018 23:22
@darrachequesne darrachequesne added this to the 2.1.0 milestone Feb 28, 2018
darrachequesne added a commit to darrachequesne/socket.io that referenced this pull request Mar 8, 2018
darrachequesne added a commit to darrachequesne/socket.io that referenced this pull request Mar 14, 2018
darrachequesne added a commit that referenced this pull request Mar 29, 2018
This follows #3187, with a slightly different API.

A dynamic namespace can be created with:

```js
io.of(/^\/dynamic-\d+$/).on('connect', (socket) => { /* ... */ });
```
@adamreisnz
Copy link

Too bad this never made it into the documentation

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

Successfully merging this pull request may close these issues.

2 participants