문제

I am using socket.io to do websocket communication within my application. After the connection is lost, it tries to reconnect 6 times, then it reaches a timeout. Is there any event, emitted when it is no longer trying to reconnect?

도움이 되었습니까?

해결책

Well I found that this is a known issue.

Reference: https://github.com/LearnBoost/socket.io/issues/652

Sad ... :(

다른 팁

From the source code it seems the event is "reconnect_failed"

if (this.attempts > this._reconnectionAttempts) {
this.emit('reconnect_failed');
this.reconnecting = false;
} 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top