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

make returning text from websocket messages optional #545

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

urjitbhatia
Copy link
Contributor

websocket.on("message") methods shouldn't be required to return a string value. This patch makes it optional to send a response.
The RFC does not mandate sending a text response when an application level data frame is received.

@codspeed-hq
Copy link

codspeed-hq bot commented Jun 22, 2023

CodSpeed Performance Report

Merging #545 urjitbhatia:feat/optional_ws_msg_return (e711ee3) will not alter performances.

Summary

🔥 0 improvements
❌ 0 regressions
✅ 92 untouched benchmarks

🆕 0 new benchmarks
⁉️ 0 dropped benchmarks

Copy link
Member

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @urjitbhatia 😄

LGTM 🔥

@sansyrox
Copy link
Member

@urjitbhatia , rustfmt is failing. Can you please address that?

@sansyrox
Copy link
Member

Perfect, now. Great work @urjitbhatia

@sansyrox sansyrox merged commit 3d21c42 into sparckles:main Jun 23, 2023
31 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.

2 participants