removeAllListeners

abstract fun removeAllListeners(type: String = definedExternally)(source)

Node.js-specific extension to the EventTarget class. If type is specified, removes all registered listeners for type, otherwise removes all registered listeners.

Since

v14.5.0