def METHOD_NAME(websocket_app: WebSocketApp, message: str): 
    message = json.loads(message)
    if message["type"] == "message":
        self.recv_messages.append(message["data"])
    if message["type"] == "system" and message["event"] == "connected":
        self.connection_ids.append(message["connectionId"])
    LOG.debug(message)