Skip to main content
EventEmitter.getMaxListeners - events - Node documentation
method EventEmitter.getMaxListeners

Usage in Deno

import { type EventEmitter } from "node:events";
EventEmitter.getMaxListeners(): number

Returns the current max listener value for the EventEmitter which is either set by emitter.setMaxListeners(n) or defaults to defaultMaxListeners.

Return Type

number
Back to top