Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[major] Remove
WebSocket#pause()
and WebSocket#resume()
This is in preparation for read backpressure handling when permessage-deflate is enabled. The user should not interfere by pausing/resuming the underlying `net.Socket` stream.
- Loading branch information
Showing
3 changed files
with
0 additions
and
101 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
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
a206e98
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too bad those two methods were removed. We are using ws in combination with Express where we have to pause the WebSocket first until the Express bindings are ready.
a206e98
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't recommend it but you can still achieve the same result by using the private
_socket
property.a206e98
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cbratschi you could use
request.socket
instead which is not private.