EwelinkNET icon indicating copy to clipboard operation
EwelinkNET copied to clipboard

make websocket reconnect when needed by updating its internal IsConne…

Open CristianT opened this issue 4 years ago • 0 comments

I was experimenting disconnections of the websocket when running the library in a server for a long time, probably due to timeout. The websocket doesn't recover from that. I hoocked the events OnClose and OnError to update the internal IsConnected state an therefore be able to use the same client over long periods.

CristianT avatar Apr 25 '20 07:04 CristianT