mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
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.