I implemented a websocket client in C++ using libwebsocket.
I'd like to send big messages, but I limited the message payload to 8K and I need to use that payload value.
Here it is a snipped of my initialization code:
void
WSManager::initProtocols(void)
{
memset(protocols, 0, sizeof(protocols));
protocols[0].name = "default";
protocols[0].callback = callback;
protocols[0].per_session_data_size = 1500;
protocols[0].rx_buffer_size = 8000;
/* End of the list */
protocols[1].name = NULL;
protocols[1].callback = NULL;
protocols[1].per_session_data_size = 0;
protocols[1].rx_buffer_size = 0;
}
The problem now is how to send messages greater than 8K.
Is there a way to bufferize data or I have to use fraggle?