Documentation
    Preparing search index...

    Type Alias WebRTCSession

    WebRTC session

    type WebRTCSession = {
        disconnect: Unsubscribe;
        id: string;
        onConnected?: (peer: WebRTCPeer, track: any) => any;
        open: boolean;
        peers: { [key: string]: WebRTCPeer };
        stream: MediaStream;
        uid: string;
    }
    Index

    Properties

    disconnect: Unsubscribe

    Disconnection session

    id: string

    Room ID

    onConnected?: (peer: WebRTCPeer, track: any) => any

    Callback when peers connect

    open: boolean

    Is the connection active?

    peers: { [key: string]: WebRTCPeer }

    Connected peers sorted by UID

    stream: MediaStream

    Local media stream

    uid: string

    Connection UID