Commit c57c968c authored by 李腾's avatar 李腾

feat: websocket新增console

parent 7ad25b6d
......@@ -126,8 +126,9 @@ class Socket extends EventEmitter {
// 保持连接-默认每3分钟重置一下服务器关闭时间
heartBeat(time) {
console.log('ws: call heartBeat');
this.heartBeatTimer = setTimeout(() => {
console.log('ws: heart beat', time);
console.log('ws: sent heart beat');
this.sendMessage('HeartBeat');
this.heartBeat(time);
}, time || 180000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment