def METHOD_NAME(self, message):
    """Send message to gateway server."""
    try:
        if not self.disconnected and self.ws is not None:
            self.ws.write_message(message)
    except Exception as e:
        self.log.error(f"Exception writing message to websocket: {e}")  # , exc_info=True)