Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Longer messages get split into chunks of 1024 characters #71

Closed
charlieamer opened this issue Dec 11, 2016 · 2 comments
Closed

Longer messages get split into chunks of 1024 characters #71

charlieamer opened this issue Dec 11, 2016 · 2 comments

Comments

@charlieamer
Copy link

I was trying to call a function from server to a JS client with parameter string which is around 5000 characters long. The message, however, was split into chunks of 1024 bytes and sent multiple times (that is, firstly, chunk 0-1024 is sent, then 1024-2048, etc). This resulted in a corrupt JSON, as you can imagine, library is trying to read message by message, and it gets chunks instead. This happens on WebSocket transport and ServerSideEvents transport (long polling transport works).
Is there a way to change the max length of text that I can send, or will you upgrade the client that he knows how to receive these multipart messages.

@davidfowl
Copy link
Member

This library is still under heavy development and isn't ready for real usage yet.

@moozzyk
Copy link
Contributor

moozzyk commented Dec 11, 2016

Dupe of #6
Tracked as part of #3

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

No branches or pull requests

3 participants