Member Junction
    Preparing search index...

    Verifies and parses LiveKit webhooks.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Verifies the request's signature and returns the event.

      One event is also acted on here, because every LiveKit webhook MJ receives passes through this method: on a verified room_finished the room's RoomAudioPlayer playbacks (hold music) are stopped, so a bot never outlives its room. That cleanup runs in the background and never throws.

      Parameters

      • body: string

        The raw request body (the signature covers the exact bytes, so do not re-serialise parsed JSON).

      • OptionalauthHeader: string

        The request's Authorization header.

      Returns Promise<LiveKitRoomWebhookEvent>

      when the signature is missing or does not verify.