Skip to content

No automatic reconnectionΒ #22

@ch-smesel

Description

@ch-smesel

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) calls Connection.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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions