Skip to content

Send ws binary message with Blob#502

Merged
Madoshakalaka merged 2 commits intoranile:masterfrom
Fedeparma74:ws-blob
Mar 25, 2026
Merged

Send ws binary message with Blob#502
Madoshakalaka merged 2 commits intoranile:masterfrom
Fedeparma74:ws-blob

Conversation

@Fedeparma74
Copy link
Copy Markdown
Contributor

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.

@Madoshakalaka Madoshakalaka merged commit 798b701 into ranile:master Mar 25, 2026
20 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