Hierarchy

  • BaseDevice
    • PeerDevice

Constructors

Properties

connectionMonitorInterval: undefined | Timer
id: string
peerUrl: string
realtimeListeners: RealtimeListener[] = []
remoteDevicePeerId: null | string = null
rtcClient: undefined | RtcClient
streamTelemetry: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
telemetryStreamActive: boolean = false
prefixed: string | boolean

Methods

  • Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • fn: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • Optional context: any

    Returns this

  • Parameters

    • streamName: string
    • newFormat: "wav" | "opus"

    Returns Promise<void>

  • Parameters

    • streamName: string

    Returns Promise<void>

  • Calls each of the listeners registered for a given event.

    Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • Rest ...args: any[]

    Returns boolean

  • Parameters

    • streamName: string

    Returns Promise<void>

  • Return an array listing the events for which the emitter has registered listeners.

    Returns (string | symbol)[]

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

  • Parameters

    • streamNameOrStreamNames: string | string[]
    • start: Date
    • end: Date
    • Optional tags: {}
      • Optional limit: number
      • Optional offset: number
      • Optional latestOnly: boolean

      Returns Promise<TelemetryResult[]>

    • Return the number of listeners listening to a given event.

      Parameters

      • event: string | symbol

      Returns number

    • Return the listeners registered for a given event.

      Type Parameters

      • T extends string | symbol

      Parameters

      • event: T

      Returns ((...args) => void)[]

    • Type Parameters

      • T extends string | symbol

      Parameters

      • event: T
      • Optional fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional context: any
      • Optional once: boolean

      Returns this

    • Add a listener for a given event.

      Type Parameters

      • T extends string | symbol

      Parameters

      • event: T
      • fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional context: any

      Returns this

    • Add a one-time listener for a given event.

      Type Parameters

      • T extends string | symbol

      Parameters

      • event: T
      • fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional context: any

      Returns this

    • Remove all listeners, or those of the specified event.

      Parameters

      • Optional event: string | symbol

      Returns this

    • Remove the listeners of a given event.

      Type Parameters

      • T extends string | symbol

      Parameters

      • event: T
      • Optional fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional context: any
      • Optional once: boolean

      Returns this

    • Parameters

      • name: string
      • Optional data: string
      • Optional time: Date
      • Optional metadata: {}

        Returns Promise<Response>

      • Parameters

        • Optional sessionType: number

        Returns Promise<void>

      Generated using TypeDoc