-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- Play mode
- Allow a successful connection
- Internet off, a
Websocket.Closed
gets fired - Handler (
Connection.websocket_Closed
) callsConnection.Connect
again Connection.Connect
line_websocket.Open();
can't reconnect since there's no internet and no more reconnections attempts are made from that point on- Internet on, nothing happens
'Fail on startup' steps:
- Internet off
- Play mode
_websocket.Open();
doesn't do anything and there are no attempts to try connecting for the first time
jinhe1997
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working