-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fire an error event on middleware failure for non-root namespace (…
…#1202) In the following example: ```js io.use((socket, next) => { next(new Error('Auth failed')); }); // client-side const socket = io('https://url/custom-namespace'); socket.on('error', (err) => { // ... }); ``` The 'error' event wasn't fired on the custom namespace.
- Loading branch information
1 parent
3eb047f
commit 165ce3e
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters