def METHOD_NAME(client, req):
    # Acknowledge the message back to Slack
    client.send_socket_mode_response(SocketModeResponse(envelope_id=req.envelope_id))
    if req.type == "events_api" and "event" in req.payload:
        e = req.payload["event"]
        print(f'Received event from slack websocket: {e}')
        # ignore message edit, delete, reaction events
        if "previous_message" in e or  e["type"] == "reaction_added":
            return
        print(f'Sending message event to kaskada: {e}')
        # Deliver the message to Kaskada
        live_messages.add_event(pyarrow.json.read_json(e))