method Worker.prototype.on
Jump to headingWorker.prototype.on(event: string,listener: (...args: any[]) => void,): this
Parameters Jump to heading
Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void
Return Type Jump to heading
this
Jump to headingWorker.prototype.on(event: "disconnect",listener: () => void,): this
Parameters Jump to heading
Jump to headingevent: "disconnect"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingWorker.prototype.on(event: "error",listener: (error: Error) => void,): this
Parameters Jump to heading
Jump to headingevent: "error"
Jump to headinglistener: (error: Error) => void
Return Type Jump to heading
this
Jump to headingWorker.prototype.on(event: "exit",listener: (code: number,signal: string,) => void,): this
Parameters Jump to heading
Jump to headingevent: "exit"
Jump to headinglistener: (code: number,signal: string,) => void
Return Type Jump to heading
this
Jump to headingWorker.prototype.on(event: "listening",listener: (address: Address) => void,): this
Parameters Jump to heading
Jump to headingevent: "listening"
Jump to headinglistener: (address: Address) => void
Return Type Jump to heading
this
Jump to headingWorker.prototype.on(event: "message",listener: (message: any,handle: net.Socket | net.Server,) => void,): this
Parameters Jump to heading
Jump to headingevent: "message"
Jump to headinglistener: (message: any,handle: net.Socket | net.Server,) => void
Return Type Jump to heading
this
Jump to headingWorker.prototype.on(event: "online",listener: () => void,): this
Parameters Jump to heading
Jump to headingevent: "online"
Jump to headinglistener: () => void
Return Type Jump to heading
this