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
.
method
worker_threads.MessagePort.removeListener
event: 'close',
options?: EventListenerOptions
): this;
event: 'message',
listener: (value: any) => void,
options?: EventListenerOptions
): this;
event: 'messageerror',
options?: EventListenerOptions
): this;