Skip to main content

once

method Worker.prototype.once
Jump to headingWorker.prototype.once(
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.once(
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.once(
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.once(
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.once(
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.once(
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.once(
event: "online",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "online"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Back to top