StreamerStats implements the statistics serialization for a Streamer instance.

Hierarchy

Implements

Constructors

Properties

_lastBytesSend: number
_lastBytesSendTime: number
_streamer: Streamer
log: ILog

Start a log

Param

Returns

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

    • Optional options: {
          signal?: AbortSignal;
      }
      • Optional signal?: 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

    • Optional options: {
          signal?: AbortSignal;
      }
      • Optional signal?: AbortSignal

    Returns void

Events

Generated using TypeDoc