MremoveListener
Bun

method

worker_threads.MessagePort.removeListener

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

Node.js-specific extension to the EventTarget class that removes the listener for the given type. The only difference between removeListener() and removeEventListener() is that removeListener() will return a reference to the EventTarget.

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