def send(self, message):
        """Send a the defined message to the backend.

        :param message: Message to be send, usually a Python dictionary.
        """
        try:
            self.ws.send(json.dumps(message))
        except websocket._exceptions.WebSocketConnectionClosedException:
            raise SelenolWebSocketClosedException()
def send ( self , message ) : try : self . ws . send ( json . dumps ( message ) ) except websocket . _exceptions . WebSocketConnectionClosedException : raise SelenolWebSocketClosedException ( )
Send a the defined message to the backend.

        :param message: Message to be send, usually a Python dictionary.