-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ignore packets when the transport is silently closed
In some cases, a "Transport not open" error could be thrown when the transport was silently closed in the onbeforeunload event (added in [1]). To reproduce: ```js window.addEventListener("unload", () => { socket.write("..."); }); ``` [1]: ed48b5d Related: socketio/socket.io#3838
- Loading branch information
1 parent
fc5dc6b
commit d291a4c
Showing
2 changed files
with
33 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