-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: throw upon invalid packet format
Instead of returning an ERROR packet, the decoder will now throw an error, since it means the other side is sending invalid payloads. The server will then disconnect the client: [1] [1] https://github.com/socketio/socket.io/blob/2.3.0/lib/client.js#L194-L198
- Loading branch information
1 parent
f516346
commit 388e5f5
Showing
2 changed files
with
64 additions
and
14 deletions.
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