def recv(self):
        """Receive message from the backend or wait unilt next message."""
        try:
            message = self.ws.recv()
            return json.loads(message)
        except websocket._exceptions.WebSocketConnectionClosedException as ex:
            raise SelenolWebSocketClosedException() from ex
def recv ( self ) : try : message = self . ws . recv ( ) return json . loads ( message ) except websocket . _exceptions . WebSocketConnectionClosedException as ex : raise SelenolWebSocketClosedException ( ) from ex
Receive message from the backend or wait unilt next message.