websocket 心跳重连
摘要:websocket 的基本使用:var ws = new WebSocket(url); ws.onclose = function () { //something reconnect(); // 自定义的 websocket 重连方法 }; ws.onerror = function () {
阅读全文
posted @ 2018-03-22 11:06
Tirion
posted @ 2018-03-22 11:06
posted @ 2018-03-21 14:45
posted @ 2018-03-12 17:17
posted @ 2018-03-12 14:24