EwelinkNET
EwelinkNET copied to clipboard
make websocket reconnect when needed by updating its internal IsConne…
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.