Monce
Bun

method

worker_threads.MessagePort.once

event: 'close',
listener: (ev: Event) => void
): this;

Node.js-specific extension to the EventTarget class that adds a once listener for the given event type. This is equivalent to calling on with the once option set to true.

event: 'message',
listener: (value: any) => void
): this;
event: 'messageerror',
listener: (error: Error) => void
): this;
event: string,
listener: (arg: any) => void
): this;