public on(event: string, listener: Function): EventEmitter
Parameters
-
event: string
-
listener: Function
Returns
EventEmitter
public on(event: string, option: boolean, listener: Function): EventEmitter
Parameters
-
event: string
-
option: boolean
-
listener: Function
Returns
EventEmitter
public on(event: ""read"", listener: (data: NodeBuffer, isNotification: boolean) => void): EventEmitter
Parameters
-
event: ""read""
-
listener: (data: NodeBuffer, isNotification: boolean) => void
Returns
EventEmitter
public on(event: ""write"", withoutResponse: boolean, listener: (error: string) => void): EventEmitter
Parameters
-
event: ""write""
-
withoutResponse: boolean
-
listener: (error: string) => void
Returns
EventEmitter
public on(event: ""broadcast"", listener: (state: string) => void): EventEmitter
Parameters
-
event: ""broadcast""
-
listener: (state: string) => void
Returns
EventEmitter
public on(event: ""notify"", listener: (state: string) => void): EventEmitter
Parameters
-
event: ""notify""
-
listener: (state: string) => void
Returns
EventEmitter
public on(event: ""descriptorsDiscover"", listener: (descriptors: "noble".Descriptor[]) => void): EventEmitter
Parameters
-
event: ""descriptorsDiscover""
-
listener: (descriptors: "noble".Descriptor[]) => void
Returns
EventEmitter