Open IonCaza opened 3 months ago
1) connect(..) is meant to be a one-time-use API. Please create a new object via WebOSClient(..) when attempting to reconnect.
2) Connection reset -- looks like your TV is closing the socket?
Copy that, I'll move the object creation inside the try block. Is register also meant to be performed once? If it fails, do I have to recreate the client object?
Yes, even register(..) is meant to be performed only one per connection (WebOSClient is just a connection client instance from ws4py)
Hey there, I'm working on a little software KVM for my 3x C3 42". Here's my retry logic when trying to connect to my TVs:
This is my registration logic:
Every once in a while one of them fails to connect even though I try multiple times. Here's what that looks like:
Any ideas why this is happening? Most of the times, hitting that logic again works without issues.