def get_auth_message_type(message):
    """Reads raw auth channel messages and extracts the message type and
    message body"""
    if isinstance(message, list) and message[1] == "hb":
        message_type = "hb"
    elif isinstance(message, list):
        message = message[2] if message[1] == "n" else message
        # message[1] <-- message type str, e.g. "on" (successfull new order)
        message_type = message[1]
    else:
        message_type = message["event"]
    return message_type, message