-
-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only set close code when receiving close frame.
The RFC is clear about this: > _The WebSocket Connection Close Code_ is defined as the status code > (Section 7.4) contained in the first Close control frame received by > the application implementing this protocol. Also: * Differentiate between closing and failing the connection in tests. * Remove a test for setting the close code based on a local close code.
- Loading branch information
Showing
2 changed files
with
35 additions
and
33 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