When connection is closed -- either cleanly (afaik currently it can happen only on logout) or by interrupt / ping timeout -- it's reasonable to try to reconnect. Current behavior is to fail silently on every method invocation because there's no error handling for websocket operations; also recv_loop just exits by websockets.exceptions.ConnectionClosedError.
When connection is closed -- either cleanly (afaik currently it can happen only on logout) or by interrupt / ping timeout -- it's reasonable to try to reconnect. Current behavior is to fail silently on every method invocation because there's no error handling for websocket operations; also recv_loop just exits by
websockets.exceptions.ConnectionClosedError.