I'm trying to receive huge amount of data from libwebsocket.
case LWS_CALLBACK_RECEIVE: {
lws_write(wsi, in, len, LWS_WRITE_TEXT);
break;
}
But this code just send small portions of the data by couple messages. So they are chunked by default and chunk size is limited by 4096.
I need some way how to receive each packet then concat and send back to client.