-
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): close websocket connection attempt on unsubscribe
Fix closing the underlying WebSocket when a WebSocketSubject is unsubscribed while the WebSocket is in the `CONNECTING` state. Initial support for closing a WebSocket before it was opened was added in #4446. However, that pull-request still waits for the connection to eventually become open before attempting to close it. This pull-request takes it a step further by closing the websocket as soon as the subject is unsubscribed.
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 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