API Reference
    Preparing search index...

    Interface RemotePeer

    Runtime state for one connected remote peer.

    interface RemotePeer {
        channels: Map<number, RTCDataChannel>;
        connection: RTCPeerConnection;
        dispose: () => void;
        id: string;
        metadata?: any;
        state: PeerConnectionState;
        streams: Map<string | number, MediaStream>;
    }
    Index

    Properties

    channels: Map<number, RTCDataChannel>

    Negotiated data channels keyed by channel id.

    connection: RTCPeerConnection

    WebRTC connection to the remote peer.

    dispose: () => void

    Cleanup routine that closes channel and connection resources.

    id: string

    Remote peer identifier.

    metadata?: any

    Metadata advertised by the remote peer.

    Peer connection state, updated on connection state changes.

    streams: Map<string | number, MediaStream>

    Remote media streams keyed by stream id.