weapp-socketio / wxapp-socket-io

此项目已经迁移至:
https://github.com/wxsocketio/weapp.socket.io
305 stars 76 forks source link

手动断开连接 #14

Open DarrenHou1993 opened 7 years ago

DarrenHou1993 commented 7 years ago

this.engine.close is not a function. 将源码的 if (this.engine) this.engine.close()改成if (this.engine) this.engine.destroy()之后可以断开连接。但是再次 socket.connect()之后 掉线频率太快。

twototoo commented 6 years ago

disconnect的reason内容是ping timeout

twototoo commented 6 years ago

项目由个pull request,可以解决这个timeout问题 Engine.prototype.destroy = function() {