pusher / pusher-websocket-unity

Pusher Channels Unity Client Library
MIT License
27 stars 20 forks source link

No automatic reconnection #22

Open sanmesel opened 3 years ago

sanmesel commented 3 years ago

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 on Connection.websocket_Closed). I thought that maybe the idea behind working this way is that perhaps Websocket.Open would try reconnecting itself until it works, but that isn't happening either.

'Try reconnect' steps:

'Fail on startup' steps:

stale[bot] commented 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.

rarepixel-studio commented 3 years ago

@damdo Any update on the fix? Thanks

juliomg91 commented 2 years ago

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.

nimeshGSN commented 3 weeks ago

@damdo Any update on this issue?