jmesnil / stomp-websocket

Stomp client for Web browsers and node.js apps
http://jmesnil.net/stomp-websocket/doc/
Apache License 2.0
1.43k stars 586 forks source link

Sending big message through websocket #49

Open sirsquall opened 10 years ago

sirsquall commented 10 years ago

When you send a message through Stomp Websocket using stomp.js, if you increase the size of "maxWebSocketFrameSize", to be able to send a big message without spliting, we have a "Connection Lost" if the message is bigger thank 16kb.

EralpB commented 7 years ago

This is unfortunately true :(

aaronxdd commented 7 years ago

@sirsquall me too,have you solve the problem

EralpB commented 7 years ago

@aaronxdd I remember solving this issue in a messaging protocol by enabling the "binary message" option. (although the messages were not binary.. but doesn't matter) I am not sure if this was THE library though.

sirsquall commented 7 years ago

We decreased the size, if I remember well, but I'm not sure now, @dsnoeck do you remember?

aaronxdd commented 7 years ago

@sirsquall if i want to send data which is bigger than 16kb,how to solve it

dsnoeck commented 7 years ago

Checking at the code, we kept it to 16kb: this.maxWebSocketFrameSize = 16 * 1024;

KrzysZG37 commented 6 years ago

Did anybody solve the issue? Increasing maxWebSocketFrameSize on the client and server side didn't solve the problem for me.