Class Controller

Hierarchy

  • ObjectWithPrivateValues
    • Controller

Implements

Constructors

Properties

UnifiWebSockets: UnifiWebsockets[] = []

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

_logged: boolean
_sites: Sites
auth: UnifiAuth
controllerInstance: AxiosInstance
globalWS: EventEmitter = ...

global event emitter, to listen on all events

strictSSL: boolean = true

listen on super site

unifiOs: boolean
version?: string = '7.0.0'

Accessors

Methods

  • Parameters

    • Optional siteName: string
    • Optional config: RawAxiosRequestConfig

    Returns AxiosInstance

  • Parameters

    • instance: AxiosInstance

    Returns AxiosInstance

  • Parameters

    • instance: AxiosInstance

    Returns AxiosInstance

  • Parameters

    • instance: AxiosInstance

    Returns AxiosInstance

  • Parameters

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

          • Rest ...args: unknown[]

          Returns unknown

    Returns this

  • Type Parameters

    • T

      the type to set.

    Parameters

    • key: string

      the key to set

    • value: T

      the value

    Returns void

Generated using TypeDoc