andremussche / DelphiWebsockets

Websockets and Socket.io for Delphi
251 stars 129 forks source link

How to reconnect if connection fails? #33

Open me21 opened 7 years ago

me21 commented 7 years ago

Hello,

what is the proper way to try to connect again if connection fails? If I call Connect inside OnDisconnected handler, I get access violation in TIdIOHandlerWebsocket.Unlock (Self variable is nil), called from TIdHTTPWebsocketClient.Disconnect.