-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(WebSocketSubject): fix subject failing to close socket (#4446)
Fix WebSocketSubject failing to close the underlying socket connection when it is unsubscribed before the socket is in the open state. Currently, when unsubscribe is called on the subject or when a subscription is unsubscribed there are checks on whether the socket is open (readyState = 1) before it closes the connection. If unsubscribe is called before the connection is open, it will not close the socket but will reset the state of the subject (_socket set to null), and it becomes impossible to close the socket.
- Loading branch information
Showing
2 changed files
with
36 additions
and
5 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