mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-13 17:07:54 -05:00
A "new_namespace" event will be emitted when a new namespace is created:
```js
io.on("new_namespace", (namespace) => {
// ...
});
```
This could be used for example for registering the same middleware for
each namespace.
See https://github.com/socketio/socket.io/issues/3851