标签: reactjs sockets websocket sockjs web-stomp
在连接到websocket时,几秒钟后出现错误: 哎呀!断开与wss:// ...
使用导入的webstomp,{client}来自“ webstomp-client”;
& webstomp.client(url,{debug:true,heartbeat:{incoming:10000,outgoing:10000});
仅pong可见,ping不在控制台中显示。