Skip to content

Send ws binary message with Blob #502

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fedeparma74
Copy link

This pull request contains changes to the gloo-net crate. It changes the start_send method in the impl Sink<Message> for WebSocket implementation to use Blob for sending binary messages instead of ArrayBuffer.

This fixes an issue where the function would incur in a panic when compiling the library with SharedArrayBuffer enabled (compiling with rustflags = ['-C','target-feature=+atomics,+bulk-memory,+mutable-globals']).

immagine

Tests have been update to cover the Message::Bytes case.

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.

1 participant