Open sanmesel opened 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you.
@damdo Any update on the fix? Thanks
We are also having this issue. Any fix in mind anytime soon? I was expecting the method WebsocketAutoReconnect to try to auto reconnect until successful, like the previous implementation. It seems that now it only tries once.
@damdo Any update on this issue?
Hi, I'm having an issue where automatic reconnection is not working when connection is lost and then regained. Alternatively, when going to play mode without internet it just stays on 'Initialized' state and doesn't connect when giving it internet afterwards.
I could track that on
Connection.Connect
line_websocket.Open();
it isn't failing in any way nor firing any event in case it can't connect, as a result it stops trying to reconnect after the first attempt (since the reconnection code is only onConnection.websocket_Closed
). I thought that maybe the idea behind working this way is that perhapsWebsocket.Open
would try reconnecting itself until it works, but that isn't happening either.'Try reconnect' steps:
Websocket.Closed
gets firedConnection.websocket_Closed
) callsConnection.Connect
againConnection.Connect
line_websocket.Open();
can't reconnect since there's no internet and no more reconnections attempts are made from that point on'Fail on startup' steps:
_websocket.Open();
doesn't do anything and there are no attempts to try connecting for the first time