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