sinricpro / python-sdk

python3 sdk for sinric pro.
https://sinric.pro
23 stars 9 forks source link

Connection with Server Closed #59

Open DevMiser opened 10 months ago

DevMiser commented 10 months ago

I occasionally get the message “| INFO | sinric._sinricpro_websocket:receive_message:64 - Connection with server closed” and my device stops working. I would like my program to reconnect with sinricpro when this happens. Is there a way to do this in Python?

kakopappa commented 10 months ago

One solution is to do a clean exit when disconnect and get something like pm2/forever to restart the process than trying to implement reconnections