WebSocket

this.connect = new WebSocket(ws://${location.host}/ws);

this.connect.onmessage // 数据处理

this.connect.onclose // 重新连接

posted @ 2020-08-11 14:15  Running00  阅读(85)  评论(0)    收藏  举报