Type alias DeviceEvents

DeviceEvents: {
    announced: ((device: Device) => void);
    connected: ((device: Device) => void);
    disconnected: ((device: Device) => void);
}

The interface the device manager event emitter should follow

Type declaration

  • announced: ((device: Device) => void)
      • (device: Device): void
      • Fired every time the device announces itself on the network

        Parameters

        Returns void

  • connected: ((device: Device) => void)
      • (device: Device): void
      • Fired when a new device becomes available on the network

        Parameters

        Returns void

  • disconnected: ((device: Device) => void)
      • (device: Device): void
      • Fired when a device has not announced itself on the network for the specified timeout.

        Parameters

        Returns void

Generated using TypeDoc