LiveKit JS Client SDK - v2.25.0
    Preparing search index...

    Interface ConnectionHooksExperimental

    What an extension contributes to the connection lifecycle.

    interface ConnectionHooks {
        onDisconnect?(): void;
    }
    Index
    • Experimental

      Runs at the start of every disconnect, including one that reaches an already disconnected room, before the room emits RoomEvent.Disconnected.

      Returns void