Swoole报错Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state. a
生活随笔
收集整理的這篇文章主要介紹了
Swoole报错Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state. a
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
原來(lái)
//實(shí)例對(duì)象的onopen屬性 websocket.onopen = function (evt) {websocket.send("send message");console.log("connected"); }修改bug
//實(shí)例對(duì)象的onopen屬性 websocket.onopen = function (evt) {if (websocket.readyState === 1) {websocket.send("send message");console.log("connected readyState");} }?
總結(jié)
以上是生活随笔為你收集整理的Swoole报错Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state. a的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 梦见拆家具换家具自己很生气?
- 下一篇: Swoole跨域问题解决