Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic on empty close frame #25

Merged
merged 1 commit into from
Aug 3, 2024
Merged

Fix panic on empty close frame #25

merged 1 commit into from
Aug 3, 2024

Conversation

jgraef
Copy link
Owner

@jgraef jgraef commented Aug 3, 2024

Fixes #24

This returns a Message::Close { code: CloseCode::default(), reason: "".to_owned() } when a tungstenite::Message::Close(None) is received.

We should probably copy the design from tungstenite and make the Close variant take an Option, but we also need to consider how web-sys does things.

@jgraef jgraef merged commit c8c8094 into main Aug 3, 2024
3 checks passed
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.

0.4.1: panic on receiving empty Close frame
1 participant