@ceeblue/webrtc-client
    Preparing search index...

    Class StreamerStats

    StreamerStats implements the statistics serialization for a Streamer instance.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    Events

    Constructors

    Properties

    log: ILog

    Start a log

    a Log object with the levels of log to call

    Methods

    • Event unsubscription

      Parameters

      • name: "Release" | "release"

        Name of event without the 'on' prefix (ex: 'log' to 'onLog' event declared)

      • event: Function

        Unsubscriber Function, must be the one passed to on or once subscription methods

      Returns boolean

    • Event subscription

      Parameters

      • name: "Release" | "release"

        Name of event without the on prefix (ex: log to onLog event declared)

      • event: Function

        Subscriber Function

      • Optionaloptions: { signal?: AbortSignal }
        • Optionalsignal?: AbortSignal

          Optional AbortSignal to stop this or multiple subscriptions in same time

      Returns void

    • Event subscription only one time, once time fired it's automatically unsubscribe

      Parameters

      • name: "Release" | "release"

        Name of event without the on prefix (ex: log to onLog event declared)

      • event: Function

        Subscriber Function

      • Optionaloptions: { signal?: AbortSignal }
        • Optionalsignal?: AbortSignal

          Optional AbortSignal to stop this or multiple subscriptions in same time

      Returns void

    Events