method Http2Stream.emitHttp2Stream.emit(event: "aborted"): booleanDeprecatedParametersevent: "aborted"Return TypebooleanHttp2Stream.emit(event: "close"): booleanDeprecatedParametersevent: "close"Return TypebooleanHttp2Stream.emit(event: "data",chunk: Buffer | string,): booleanDeprecatedParametersevent: "data"chunk: Buffer | stringReturn TypebooleanHttp2Stream.emit(event: "drain"): booleanDeprecatedParametersevent: "drain"Return TypebooleanHttp2Stream.emit(event: "end"): booleanDeprecatedParametersevent: "end"Return TypebooleanHttp2Stream.emit(event: "error",err: Error,): booleanDeprecatedParametersevent: "error"err: ErrorReturn TypebooleanHttp2Stream.emit(event: "finish"): booleanDeprecatedParametersevent: "finish"Return TypebooleanHttp2Stream.emit(event: "frameError",frameType: number,errorCode: number,): booleanDeprecatedParametersevent: "frameError"frameType: numbererrorCode: numberReturn TypebooleanHttp2Stream.emit(event: "pipe",src: stream.Readable,): booleanDeprecatedParametersevent: "pipe"src: stream.ReadableReturn TypebooleanHttp2Stream.emit(event: "unpipe",src: stream.Readable,): booleanDeprecatedParametersevent: "unpipe"src: stream.ReadableReturn TypebooleanHttp2Stream.emit(event: "streamClosed",code: number,): booleanDeprecatedParametersevent: "streamClosed"code: numberReturn TypebooleanHttp2Stream.emit(event: "timeout"): booleanDeprecatedParametersevent: "timeout"Return TypebooleanHttp2Stream.emit(event: "trailers",trailers: IncomingHttpHeaders,flags: number,): booleanDeprecatedParametersevent: "trailers"trailers: IncomingHttpHeadersflags: numberReturn TypebooleanHttp2Stream.emit(event: "wantTrailers"): booleanDeprecatedParametersevent: "wantTrailers"Return TypebooleanHttp2Stream.emit(event: string | symbol,...args: any[],): booleanDeprecatedParametersevent: string | symbol<span>...args</span>: any[]Return Typeboolean