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

Can't send Iterable as one packet #72

Closed
Curvel opened this issue Mar 24, 2020 · 2 comments
Closed

Can't send Iterable as one packet #72

Curvel opened this issue Mar 24, 2020 · 2 comments
Labels

Comments

@Curvel
Copy link

Curvel commented Mar 24, 2020

For sending an audio stream over socket.io we need to be able to send byte buffers. At the moment this buffers implemented as Uint8List is split by the library into one element of the List per packet.

At the moment we change this behavior for us with this little change, but is definitely no change everybody will be happy with.

Maybe a standard option for this behavior should be added to this library. Please let me know what you think of this.

@jumperchen
Copy link
Member

workaround:

socket.emitWithBinary('toServer',{'file': bytes});

@jumperchen jumperchen added the bug label Apr 7, 2020
jumperchen added a commit to rikulo/socket_io_common that referenced this issue May 5, 2020
@Curvel
Copy link
Author

Curvel commented May 5, 2020

Thanks for fixing the issue :D

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

No branches or pull requests

2 participants