![](/img/trans.png)
[英]socket.io 'connect' or 'reconnect' event not fired after reconnect
[英]socket.io event on reconnect timeout
我正在使用socket.io在我的应用程序中进行websocket通信。 连接断开后,它将尝试重新连接6次,然后达到超时。 当不再尝试重新连接时,是否会发出任何事件?
从源代码看来,该事件为“ reconnect_failed”
if (this.attempts > this._reconnectionAttempts) {
this.emit('reconnect_failed');
this.reconnecting = false;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.