[twsocket] Socket States

2018-02-05 Thread Allan Fernandes
Hi, Can I seggregate the Socket states such that  1)if all is well and workable then we are in either wsConnected or wsListening state. 2)After Close or Error etc and after timeout elapses we will go into wsClosed 3) All below states are temporary and will in a minute or so go into the tw

Re: [twsocket] Socket States

2018-02-05 Thread Wilfried Mestdagh
Hi, Do not rely on the OnChangestate event for re-connecting. Reconnect by means of a PostMessage in the OnSessionClosed event. Best regards. Met vriendelijke groeten, Wilfried Mestdagh Op 05-02-18 om 10:39 schreef Allan Fernandes: Hi, Can I seggregate the Socket states such that 1)if all i