[Libwebsockets] message fragmentation

Alexander Zvyagin zvyagin.alexander at gmail.com
Fri Jan 18 19:28:54 CET 2019


I started to use libwebsockets last week, so I am sorry in advance if
my question is naive or I miss something in the documentation.

I am sending a message from my protocol, the message length is 3780
bytes. The buffer size is 8192 bytes, lws_write() reports that the
message has been sent. But on the client side in javascript code I
receive only first 2213 bytes of the message.

How do I detect (in javascript) that the message was fragmented? How
do I get the rest of the message?

Thanks a lot in advance!

More information about the Libwebsockets mailing list