Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add a noop handler for the error event
We should reduce the scope of the "event" error in the next major version, as it is overloaded today: - it can be sent by the client (`socket.emit("error")`, which is a perfectly valid event name) - it can be emitted when the connection encounters an error (an invalid packet for example) - it can be emitted when a packet is rejected in a middleware (`socket.use()`) Related: #2047
- Loading branch information