Alias for emitter.on(eventName, listener).
method
http2.Http2Server.addListener
addListener<E extends keyof Http2ServerEventMap<typeof IncomingMessage, typeof ServerResponse, typeof Http2ServerRequest, typeof Http2ServerResponse>>(
eventName: E,
listener: (...args: Http2ServerEventMap<Http1Request, Http1Response, Http2Request, Http2Response>[E]) => void
): this;
eventName: string | symbol,
listener: (...args: any[]) => void
): this;
Alias for emitter.on(eventName, listener).