Open DarrenHou1993 opened 7 years ago
this.engine.close is not a function. 将源码的 if (this.engine) this.engine.close()改成if (this.engine) this.engine.destroy()之后可以断开连接。但是再次 socket.connect()之后 掉线频率太快。
disconnect的reason内容是ping timeout
项目由个pull request,可以解决这个timeout问题 Engine.prototype.destroy = function() {
let sub while (sub = this.subs.shift()) { sub.destroy() }
this.engine.close is not a function. 将源码的 if (this.engine) this.engine.close()改成if (this.engine) this.engine.destroy()之后可以断开连接。但是再次 socket.connect()之后 掉线频率太快。