Defined in src/devices/index.ts:62
Properties
Private
#config
Defined in src/devices/index.ts:66
Private
#device Timeouts
#device
Timeouts
: Map < number , Timeout > = ...
Defined in src/devices/index.ts:75
Private
#devices
#devices
: Map < number , Device > = ...
Defined in src/devices/index.ts:70
Private
#emitter
Defined in src/devices/index.ts:79
off
off
: ( ( eventName
: string | symbol , listener
: ( ( ... args
: any [] ) => void ) ) => EventEmitter ) = ...
Type declaration
( eventName: string | symbol , listener: ( ( ... args: any [] ) => void ) ) : EventEmitter
Parameters
eventName: string | symbol
listener: ( ( ... args: any [] ) => void )
( ... args: any [] ) : void
Returns void
Defined in src/devices/index.ts:90
on
Type declaration
< P , T > ( this: T , event: P , listener: ( ( ... args: ListenerType < DeviceEvents [ P ] > ) => void ) ) : T
Returns T
( event: typeof assignmentCompatibilityHack , listener: ( ( ... args: any [] ) => any ) ) : void
Parameters
listener: ( ( ... args: any [] ) => any )
( ... args: any [] ) : any
Returns any
Returns void
Defined in src/devices/index.ts:89
once
Type declaration
< P , T > ( this: T , event: P , listener: ( ( ... args: ListenerType < DeviceEvents [ P ] > ) => void ) ) : T
Returns T
( event: typeof assignmentCompatibilityHack , listener: ( ( ... args: any [] ) => any ) ) : void
Parameters
listener: ( ( ... args: any [] ) => any )
( ... args: any [] ) : any
Returns any
Returns void
Defined in src/devices/index.ts:91
Accessors
devices
get devices( ) : Map < number , Device >
Returns Map < number , Device >
Defined in src/devices/index.ts:96
Methods
Private
#handle Announce
#handle Announce( message: Buffer ) : void
Returns void
Defined in src/devices/index.ts:132
Private
#handle Disconnect
#handle Disconnect( removedDevice: Device ) : void
Returns void
Defined in src/devices/index.ts:162
get Device Ensured
get Device Ensured( id: number , timeout?: number ) : Promise < null | Device >
Parameters
id: number
timeout: number = ENSURED_TIMEOUT
Returns Promise < null | Device >
Defined in src/devices/index.ts:104
reconfigure
reconfigure( config: ConfigEditable ) : void
Returns void
Defined in src/devices/index.ts:128
The device manager is responsible for tracking devices that appear on the prolink network, providing an API to react to devices livecycle events as they connect and disconnect form the network.