xmpp_p2p
    Preparing search index...

    Tracks peer CSI state and saved XEP-0198 sessions.

    Index

    Constructors

    Properties

    clientState: "active" | "inactive" = 'active'

    Methods

    • Retrieves and clears the saved Stream Management session configuration for resumption.

      Parameters

      • peerId: string

        The remote peer identifier.

      Returns StreamSession | undefined

      The StreamSession or undefined.

    • Retrieves the current client state of a remote peer.

      Parameters

      • peerId: string

        The remote peer identifier.

      Returns "active" | "inactive" | undefined

      The client state or undefined if not tracked.

    • Helper check to determine if a remote peer is marked as inactive.

      Parameters

      • peerId: string

        The remote peer identifier.

      Returns boolean

      True if the peer client state is 'inactive'.

    • Stores Stream Management session details for a peer to allow resumption after disconnect.

      Parameters

      • peerId: string

        The remote peer identifier.

      • session: StreamSession

        The session state configuration.

      Returns void

    • Updates the tracked client state (active or inactive) for a remote peer.

      Parameters

      • peerId: string

        The remote peer identifier.

      • state: "active" | "inactive"

        The client state (active/inactive).

      Returns void