im having a problem with my android application which uses autobahn to receive messages from a Websocket server. The server uses libwebsockets.
I am able to receive messages which are "small" enough. So this is no problem, but once the message size is over a certain value, the app just stops to call onTextMessageReceive()
method.
After that happened once, im also not able to receive anything else anymore. I need to restart my app in order to get messages again.
Does someone know where the problem could be?
I checked the parameters for MaxMessagePayloadSize
and MaxFramePayloadSize
and they are well over the size what im trying to send to my app.
Ok, i found the answer myself. My bad! its not a fault of the autobahn client. I created a new protocol in the libwebsocket server, and there was an option set like this:
{
"new_protocol", /* name */
callback_ new_protocol, /* callback */
sizeof(struct per_session_data_new_protocol),
128, /* max frame size /rx buffer */
},
I now changed this to a much bigger value and now its working fine :)
Anyways, thanks for your effort :)