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

How to send message is byte array #15

Open
nguyenvanquan7826 opened this issue Feb 19, 2021 · 2 comments
Open

How to send message is byte array #15

nguyenvanquan7826 opened this issue Feb 19, 2021 · 2 comments

Comments

@nguyenvanquan7826
Copy link

Hi, I want to send message, which is a byte array. Please help me.

@cscovino
Copy link

cscovino commented Aug 19, 2021

The easiest way is using text-encoding library to encode the byte array const string = new TextDecoder(encoding).decode(uint8array);

The other way is modify this library to accept byte array as payload

@EduardoArtioli
Copy link

What about receiving byte array? Currently a null string is not received. Making impossible to work with buffers

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

No branches or pull requests

3 participants