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

Throws an error when trying to access the clients of a dynamic namespace #3355

Conversation

0xClpz
Copy link
Contributor

@0xClpz 0xClpz commented Oct 23, 2018

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

Accessing the clients of a dynamic namespace throws because doing io.of(/your-regex/g) returns a namespace with no adapter and the clients methods tries to access namespace.adapter.clients

New behaviour

Clearer error

@darrachequesne darrachequesne changed the base branch from master to develop November 20, 2018 06:37
@darrachequesne darrachequesne merged commit a7fbd1a into socketio:develop Nov 20, 2018
@darrachequesne
Copy link
Member

Thanks!

@0xClpz 0xClpz deleted the throw-when-accessing-clients-dynamic-namespace branch November 20, 2018 12:04
@darrachequesne darrachequesne added this to the 2.2.0 milestone Nov 29, 2018
dzad pushed a commit to dzad/socket.io that referenced this pull request May 29, 2023
…amespace (socketio#3355)

Accessing the clients of a dynamic namespace throws because doing `io.of(/your-regex/g)` returns a namespace with no adapter and the clients methods tries to access `namespace.adapter.clients`.
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.

None yet

2 participants