Interface ClientEvents

Hierarchy

  • ClientEvents

Properties

bulb-new: ((device) => void)

Type declaration

    • (device): void
    • First response from Bulb.

      Parameters

      Returns void

bulb-offline: ((device) => void)

Type declaration

    • (device): void
    • No response from Bulb.

      Parameters

      Returns void

bulb-online: ((device) => void)

Type declaration

    • (device): void
    • Follow up response from Bulb.

      Parameters

      Returns void

device-new: ((device) => void)

Type declaration

    • (device): void
    • First response from device.

      Parameters

      Returns void

device-offline: ((device) => void)

Type declaration

    • (device): void
    • No response from device.

      Parameters

      Returns void

device-online: ((device) => void)

Type declaration

    • (device): void
    • Follow up response from device.

      Parameters

      Returns void

discovery-invalid: ((__namedParameters) => void)

Type declaration

    • (__namedParameters): void
    • Invalid/Unknown response from device.

      Parameters

      • __namedParameters: {
            decryptedResponse: Buffer;
            response: Buffer;
            rinfo: RemoteInfo;
        }
        • decryptedResponse: Buffer
        • response: Buffer
        • rinfo: RemoteInfo

      Returns void

error: ((error) => void)

Type declaration

    • (error): void
    • Error during discovery.

      Parameters

      • error: Error

      Returns void

plug-new: ((device) => void)

Type declaration

    • (device): void
    • First response from Plug.

      Parameters

      Returns void

plug-offline: ((device) => void)

Type declaration

    • (device): void
    • No response from Plug.

      Parameters

      Returns void

plug-online: ((device) => void)

Type declaration

    • (device): void
    • Follow up response from Plug.

      Parameters

      Returns void

Generated using TypeDoc