websocket报错DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state
webscoket初始化后this.socket.send(message)时报错:DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING statevm.init()vm.send()要明白这个问题产生的原因,就需要了解websocket的几个状态。通常在实例化一个websocket对...
转载
2020-03-26 14:30:14 ·
37450 阅读 ·
2 评论