RtcClient to be used by browsers. Interacts with signaling API v1.

Constructors

  • Parameters

    • config: IRtcClientConfigurationV1

    Returns RtcClientV1

Properties

closeConnection: any
closeConnections: any
config: any
connectToSession: any
connectingSessions: any
connections: any
consumeSignals: any
createPeer: any
createRTCPeerConnection: any
getActiveConnection: any
getSessions: any
handleSessions: any
localPeer: any
maintainConnection: any
reset: any
rtcInstancesConstructed: any
sendSignal: any
setupHandlers: any
syncConnectionsAndSessions: any
update: any
updateInterval: any

Methods

  • Connects to a peer given its id. Returns the id of the session, if one is created.

    Parameters

    • peerId: string

    Returns Promise<undefined | string>

  • Parameters

    • peerId: string
    • streamControl: IStreamControl

    Returns void

  • Parameters

    • peerId: string

    Returns Promise<void>

  • Parameters

    • peerId: string

    Returns "connected" | "connecting" | "disconnected"

  • Parameters

    • peerId: string

    Returns undefined | IIceMode

  • Parameters

    • remotePeerId: string

    Returns undefined | number

  • Returns Promise<IRtcPeer>

  • Returns Promise<IRtcPeer[]>

  • Parameters

    • peerId: string

    Returns undefined | number

  • Parameters

    Returns void

  • Returns Promise<void>

Generated using TypeDoc