RtcClient to be used by browsers.

Constructors

  • Parameters

    • config: IRtcClientConfiguration

    Returns RtcClient

Properties

closeConnections: any
config: any
connections: any
createPeer: any
createRTCPeerConnection: any
createReceiveSignalStream: any
gatherConnectionStats: any
getActiveConnection: any
getMetadata: any
grpcCallDeadline: any
iceServers?: any
iceServersLastUpdate?: any
iceServersTtl: any
isConnectionInitiator: any
isOutgoingConnection: any
localConnections: any
localPeer?: any
onCustomDataChannel: any
peerDataChannelListeners: any
receiveSignalStream?: any
refreshInterval: any
refreshIntervalDelayMs: any
reset: any
rtcInstancesConstructed: any
setupHandlers: any
statsLoopsExecuted: any
update: any
updateIceServers: any

Methods

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

    Parameters

    • remotePeerId: string
    • Optional rtcInfo: IRtcInfo

    Returns Promise<undefined | string>

  • Parameters

    • agentEndpoint: string

    Returns Promise<string | false>

  • Parameters

    • remotePeerId: string
    • streamControl: IStreamControl

    Returns void

  • Parameters

    • remotePeerId: string
    • channelName: string
    • init: RTCDataChannelInit
    • isBinary: boolean
    • listener: ((peerId, channel) => void)
        • (peerId, channel): void
        • Parameters

          • peerId: string
          • channel: RTCDataChannel

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • remotePeerId: string

    Returns Promise<void>

  • Parameters

    • remotePeerId: string

    Returns Promise<undefined | IRtcConnectionStatsInfo>

  • Parameters

    • remotePeerId: string

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

  • Returns RtcConnection[]

  • Parameters

    • remotePeerId: string

    Returns undefined | number

  • Returns Promise<IRtcPeer>

  • Returns Promise<IRtcPeer[]>

  • Parameters

    • remotePeerId: string

    Returns undefined | number

  • Parameters

    • remotePeerId: string

    Returns undefined | IPingInfo

  • Parameters

    • remotePeerId: string

    Returns undefined | IRtcSessionMetricsMessageCounts

  • Returns Promise<{}>

  • Returns boolean

  • Parameters

    Returns void

  • Returns Promise<void>

Generated using TypeDoc