I get this error on server side (b4j).
I searched the forum but I found solutions only for client websockets.
BTW I don't know how the websocket is created on server side, it is "received from somewhere" in the websocket handler class; although it seems strange to me, is it possible that the client sends the websocket to the server? If so, increasing the "client websocket size" should work, but it doesn't.
I think I should increase the payload size of the server websocket, but I don't know how.
On client side (b4a) I tried both these blocks of code:
I know that...


I searched the forum but I found solutions only for client websockets.
BTW I don't know how the websocket is created on server side, it is "received from somewhere" in the websocket handler class; although it seems strange to me, is it possible that the client sends the websocket to the server? If so, increasing the "client websocket size" should work, but it doesn't.
I think I should increase the payload size of the server websocket, but I don't know how.
On client side (b4a) I tried both these blocks of code:
B4X:
Dim jo As JavaObject = ws
jo = jo.GetField("options")
jo.RunMethod("setMaxMessagePayloadSize", Array(200000))
B4X:
Dim jo As JavaObject = ws
jo = jo.GetField("wsc")
jo = jo.RunMethod("getPolicy", Null)
jo = jo.RunMethod("setMaxTextMessageSize", Array As Object (200000))
I know that...
Remember that the data is sent as text. It is not optimized for large data transfer.
Last edited: