Member Junction
    Preparing search index...

    The subset of RTCPeerConnection this client uses.

    interface IRealtimePeerConnection {
        connectionState: RTCPeerConnectionState;
        onconnectionstatechange: (event: Event) => void;
        ontrack: (event: RTCTrackEvent) => void;
        addTrack(track: MediaStreamTrack, stream: MediaStream): IRealtimeRtpSender;
        close(): void;
        createDataChannel(label: string): IRealtimeDataChannel;
        createOffer(): Promise<RTCSessionDescriptionInit>;
        setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;
        setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    connectionState: RTCPeerConnectionState

    The aggregate ICE/DTLS state; 'disconnected' and 'failed' are how a lost network path shows up.

    onconnectionstatechange: (event: Event) => void
    ontrack: (event: RTCTrackEvent) => void

    Methods