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 587 forks source link

client send msg in a loop(loop<=200),the websocket disconnect. #147

Open SummerAnna opened 6 years ago

SummerAnna commented 6 years ago

default code: for(var i=0;i<200;i++){ client.send("/topic/topic.light.ctrl.down",{"amq-msg-type":"text","TOPIC":"topic.light.ctrl.down"},encodeURIComponent(ctrl_down_msg.toString())); }

when loop<25,it's ok,can receive the server's back-msg; but when loop>25,the error will be occupied.