-
Notifications
You must be signed in to change notification settings - Fork 64
Support fragmented messages #108
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
Comments
That sounds useful but I'm not sure how easy that would be to implement. I think it will also requires changes to From the application side, if you have the choice, you could split the huge message into smaller messages with a small header that allows you to reconstruct them again. |
So apparently |
Yeah I'm not sure either. This needs some design time :) Also it seems like tokio-tungstenite doesn't support this yet either. |
Could you elaborate on how tungstenite supports this? I'm not familiar with that support. |
I have the use case where I have to send a message of X bytes, and I know X in advance, but it is fairly large so I'd like to not have to have the entire message in memory beforehand. Instead, I'd like to lazily generate it in small chunks as they are being sent. (Of course there will need to be a check afterwards that exactly as many bytes as advertised were sent)
Would such a feature be feasible?
Similarly, but also less importantly, what about that feature for the reading direction?
The text was updated successfully, but these errors were encountered: