Skip to content

Properly do close code and reason#4

Merged
mbonneau merged 1 commit intomasterfrom
unknown repository
Dec 7, 2019
Merged

Properly do close code and reason#4
mbonneau merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 26, 2019

Properly parses the close code and reason from the close frame and removes the close exception (close codes >= 2000 are by definition NOT errors). This is #3, but with just the close code update. Fixes #2.

@ghost
Copy link
Copy Markdown
Author

ghost commented Dec 5, 2019

@mbonneau ping

Comment thread src/WebSocketConnection.php Outdated
@mbonneau
Copy link
Copy Markdown
Member

mbonneau commented Dec 5, 2019

@CharlotteDunois This looks good - thanks for the PR, I just had the one comment on the close emit above. Let me know your thoughts and we can work to get this merged.

@ghost ghost requested a review from mbonneau December 7, 2019 17:35
@mbonneau
Copy link
Copy Markdown
Member

mbonneau commented Dec 7, 2019

@CharlotteDunois Sorry about the delay in merging, ran into a small issue with the autobahn test suite when I was trying to test this.

@mbonneau mbonneau merged commit 6c1f81a into voryx:master Dec 7, 2019
@ghost ghost deleted the close-code branch December 7, 2019 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emitting close code as exception

1 participant