Documentation

Mistake on this page? Email us

Hierarchy

  • Subscribe

Index

Constructors

constructor

Methods

deviceStateChanges

  • Returns a deviceStateObserver that is listening for device events. To subscribe to specific events or devices, a DeviceEventFilter must be provided.

    Example: subscribe to device registration events.

    const observer = connect.subscribe.deviceStateChanges({ event: "registrations" });
    // add a callback
    observer.addCallback(res => console.log(res));

    Parameters

    Returns DeviceStateObserver

notifyDeviceEvents

  • notifyDeviceEvents(data: DeviceEvent<Resource>): void
  • Notify all observers

    Parameters

    Returns void

notifyResourceValues

  • notifyResourceValues(data: NotificationData): void
  • Notify all observers

    Parameters

    • data: NotificationData

    Returns void

resourceValues