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

WebSocket Server with binary mode support #1203

Open
hschneider opened this issue Feb 19, 2024 · 1 comment
Open

WebSocket Server with binary mode support #1203

hschneider opened this issue Feb 19, 2024 · 1 comment

Comments

@hschneider
Copy link

hschneider commented Feb 19, 2024

Is your feature request related to a problem? Please describe.
Some situations afford to send and receive binary WebSocket messages on an Extension's side.
E.g. when the WebSocket client implementation does not support text-messages.

Describe the solution you'd like
The server should detect incoming text- or binary messages by their opcode.
Then it switches to mode_bin or mode_text for the following conversation.
So if the incoming message is binary, all sent messages to this particular extension will be binary, too.
Other extensions in the same app should still run in their own mode.

Describe alternatives you've considered
No alternatives. If a client-implementation is limited to binary messages, it cannot be used.

Additional context
You can put this on low-priority - it's only a nice-to-have, not a show-stopper :-)

@hschneider
Copy link
Author

Looks like this should improve performance, too:
#1122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants