method Http2Session.on
#Http2Session.on(event: "close",listener: () => void,): this
#Http2Session.on(event: "error",listener: (err: Error) => void,): this
#Http2Session.on(event: "frameError",listener: (frameType: number,errorCode: number,streamID: number,) => void,): this
#Http2Session.on(event: "goaway",listener: (errorCode: number,lastStreamID: number,opaqueData?: Buffer,) => void,): this
#Http2Session.on(event: "ping",listener: () => void,): this
#Http2Session.on(event: "timeout",listener: () => void,): this