Commit 7ad25b6d authored by 李腾's avatar 李腾

feat: websocket新增heart beat方法

parent ac02eb28
...@@ -117,7 +117,7 @@ class Socket extends EventEmitter { ...@@ -117,7 +117,7 @@ class Socket extends EventEmitter {
}; };
checkWaitingData() { checkWaitingData() {
console.log('ws: checkWaitingData', this.waiting); console.log('ws: checkWaitingData', this.waitingSendData);
if (this.waitingSendData.length) { if (this.waitingSendData.length) {
this.sendMessage(this.waitingSendData.splice(0, 1)); this.sendMessage(this.waitingSendData.splice(0, 1));
this.checkWaitingData(); this.checkWaitingData();
......
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