繁体   English   中英

重新连接超时时的socket.io事件

[英]socket.io event on reconnect timeout

我正在使用socket.io在我的应用程序中进行websocket通信。 连接断开后,它将尝试重新连接6次,然后达到超时。 当不再尝试重新连接时,是否会发出任何事件?

好吧,我发现这是一个已知问题。

参考: https : //github.com/LearnBoost/socket.io/issues/652

伤心... :(

从源代码看来,该事件为“ reconnect_failed”

if (this.attempts > this._reconnectionAttempts) {
this.emit('reconnect_failed');
this.reconnecting = false;
} 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM