文件名称:WebSocket重练机制
文件大小:5KB
文件格式:RAR
更新时间:2021-12-12 03:54:56
reconnecting
Uncaught ReferenceError: ReconnectingWebSocket is not defined; 说明缺少包资源,需引入reconnecting-websocket.js和reconnecting-websocket.minjs 创建WebSocket对象使用ReconnectingWebSocket 如下: var ws = new ReconnectingWebSocket(' ws:// .... ');
【文件预览】:
reconnecting-websocket.min.js
reconnecting-websocket.js