The status emitter will report every time a device status is recieved

Hierarchy

  • StatusEmitter

Constructors

Properties

#emitter: Emitter = ...

The EventEmitter which reports the device status

#mediaSlotQueryLock: Mutex = ...

Lock used to avoid media slot query races

#statusSocket: Socket
off: ((eventName: string | symbol, listener: ((...args: any[]) => void)) => EventEmitter) = ...

Type declaration

    • (eventName: string | symbol, listener: ((...args: any[]) => void)): EventEmitter
    • Alias for emitter.removeListener().

      Since

      v10.0.0

      Parameters

      • eventName: string | symbol
      • listener: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

on: {
    <P, T>(this: T, event: P, listener: ((...args: ListenerType<StatusEvents[P]>) => void)): T;
    (event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void;
} = ...

Type declaration

once: {
    <P, T>(this: T, event: P, listener: ((...args: ListenerType<StatusEvents[P]>) => void)): T;
    (event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void;
} = ...

Type declaration

Methods

  • Parameters

    Returns undefined | Emitter

Generated using TypeDoc