maximum size for "arguments" of wampCliet.publish(token, args) ? #67
Comments
Hi. There is a maximum websocket frame size configured by Netty that equals to 64kb. Messages bigger than that size won't be delivered and maybe also the connection will get dropped. Don't know exactly. However you can overwrite that limit through the |
Thank you very much, this helped (posting from another account right now). As you said, we had to change so now, my event with about 70.000 characters in the argument arrives successfully at the subscriber. the new limit seems to be, however, 16.777.216 bytes (2^24 bytes or ~16mb). I will not exceed this limitiation for now, but I am really interested in who imposes this new limitation? Is there some other knob which I can turn around to still increase it? EDIT: I just found out that the 16mb limitation comes from |
You don't need to change the jawampa source code and the
Yes, you can change |
Thank you very much for your support, everything is perfect now |
@Matthias247 can you put this somewhere on your README.md page? I had this issue also and tried to figure out whats the problem until i stumbled now on this solved ticket. Some FAQ or known issue sections with links to the solution would be great! Unfortunately, the error handler on the makeSubscription is not triggered when the limit is exceeded. Maybe this would be also some good place to hint that something goes wrong? |
Is there a maximum size for the arguments when publishing an event?
I use this code (java):
wampClient.publish(token, response.toString());
response.toString())
is a long json-string in my case. It has about 70.000 characters. I have the suspicion that the event does not get published, because when I replaceresponse.toString
with a short string, the event gets published as expected.I dont know much about the internals of Wamp and an initial debugging session into the code did not provide me with much insight. As I said above, I think that the long string is causing some problems.
Any help/feedback is welcome. If you need more information, please let me know.
The text was updated successfully, but these errors were encountered: