Methods
addListener
-
Type parameters
Parameters
emit
- emit<E>(event: E, ...args: Arguments<ClientEvents[E]>): boolean
-
Type parameters
Parameters
Returns boolean
eventNames
- eventNames(): (string | symbol)[]
-
Returns (string | symbol)[]
getMaxListeners
- getMaxListeners(): number
-
Returns number
introduce
- introduce(host: string, port: number): void
-
Parameters
-
host: string
-
port: number
Returns void
listenerCount
- listenerCount<E>(event: E): number
-
Type parameters
Parameters
Returns number
listeners
- listeners<E>(event: E): Function[]
-
Type parameters
Parameters
Returns Function[]
off
-
Type parameters
Parameters
on
-
Type parameters
Parameters
once
-
Type parameters
Parameters
prependListener
-
Type parameters
Parameters
prependOnceListener
-
Type parameters
Parameters
quit
-
Returns void
rawListeners
- rawListeners<E>(event: E): Function[]
-
Type parameters
Parameters
Returns Function[]
removeAllListeners
- removeAllListeners<E>(event?: E): Client
-
Type parameters
Parameters
removeListener
-
Type parameters
Parameters
setMaxListeners
- setMaxListeners(maxListeners: number): Client
-
Parameters
A Junknet client. It's responsible for finishing some jobs by distributing them among daemons it knows about.