Class Controller

Hierarchy

  • ObjectWithPrivateValues
    • Controller

Implements

Constructors

Properties

auth: UnifiAuth
controllerInstance: AxiosInstance
globalWS: EventEmitter = ...

global event emitter, to listen on all events

strictSSL: boolean = true

listen on super site

unifiOs: boolean
UnifiWebSockets: UnifiWebsockets[] = []

store array to close them all if needed, or loop on registered sockets only available on unifiOS

version?: string = '7.0.0'

Accessors

Methods

  • Parameters

    • siteName: string
    • Optionalconfig: RawAxiosRequestConfig

    Returns AxiosInstance

  • Parameters

    • eventName: string
    • cb: (...args: unknown[]) => unknown

    Returns this

  • Type Parameters

    • T

      the type to set.

    Parameters

    • key: string

      the key to set

    • value: T

      the value

    Returns void