Skip to content

Websockets binary msgs #2109

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

Merged
merged 2 commits into from
Apr 28, 2020
Merged

Conversation

mike-kfed
Copy link
Contributor

I struggled to understand how binary messages over websockets are supposed to be handled using web_sys::WebSocket - after a while I found all info necessary, so I figured I add a compilation of text and binary message type sending/handling to the websockets example, hopefully helping others. Had to add js-sys as dependency I hope that is okay.

@alexcrichton alexcrichton merged commit a521c90 into rustwasm:master Apr 28, 2020
@alexcrichton
Copy link
Contributor

Looks great, thanks!

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