WebSocket

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

this.connect.onmessage // 数据处理

this.connect.onclose // 重新连接

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