Class Worker
Hierarchy
-
EventEmitter
- Worker
Index
Properties
Methods
Properties
exitedAfterDisconnect
id
process
suicide
Static defaultMaxListeners
Methods
addListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "listening"
-
listener: function
-
-
Parameters
-
address: Address
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "online"
-
listener: function
-
-
Returns void
-
-
Returns this
-
destroy
-
Parameters
-
Optional signal: string
Returns void
-
disconnect
-
Returns void
emit
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Returns void
-
-
Returns boolean
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
code: number
-
signal: string
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "listening"
-
listener: function
-
-
Parameters
-
address: Address
Returns void
-
-
-
Returns boolean
-
-
Parameters
Returns boolean
-
Parameters
-
event: "online"
-
listener: function
-
-
Returns void
-
-
Returns boolean
-
eventNames
-
Returns (string | symbol)[]
getMaxListeners
-
Returns number
isConnected
-
Returns boolean
isDead
-
Returns boolean
kill
-
Parameters
-
Optional signal: string
Returns void
-
listenerCount
-
Parameters
-
type: string | symbol
Returns number
-
listeners
-
Parameters
-
event: string | symbol
Returns Function[]
-
on
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "listening"
-
listener: function
-
-
Parameters
-
address: Address
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "online"
-
listener: function
-
-
Returns void
-
-
Returns this
-
once
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "listening"
-
listener: function
-
-
Parameters
-
address: Address
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "online"
-
listener: function
-
-
Returns void
-
-
Returns this
-
prependListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "listening"
-
listener: function
-
-
Parameters
-
address: Address
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "online"
-
listener: function
-
-
Returns void
-
-
Returns this
-
prependOnceListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "listening"
-
listener: function
-
-
Parameters
-
address: Address
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "online"
-
listener: function
-
-
Returns void
-
-
Returns this
-
removeAllListeners
-
Parameters
-
Optional event: string | symbol
Returns this
-
removeListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
send
-
Parameters
-
message: any
-
Optional sendHandle: any
-
Optional callback: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns boolean
-
setMaxListeners
-
Parameters
-
n: number
Returns this
-
Static listenerCount
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
Generated using TypeDoc
events.EventEmitter