method Http2Stream.emit Usage in Denoimport { type Http2Stream } from "node:http2"; Http2Stream.emit(event: "aborted"): boolean Parameters event: "aborted" Return Type boolean Http2Stream.emit(event: "close"): boolean Parameters event: "close" Return Type boolean Http2Stream.emit(event: "data",chunk: Buffer | string,): boolean Parameters event: "data" chunk: Buffer | string Return Type boolean Http2Stream.emit(event: "drain"): boolean Parameters event: "drain" Return Type boolean Http2Stream.emit(event: "end"): boolean Parameters event: "end" Return Type boolean Http2Stream.emit(event: "error",err: Error,): boolean Parameters event: "error" err: Error Return Type boolean Http2Stream.emit(event: "finish"): boolean Parameters event: "finish" Return Type boolean Http2Stream.emit(event: "frameError",frameType: number,errorCode: number,): boolean Parameters event: "frameError" frameType: number errorCode: number Return Type boolean Http2Stream.emit(event: "pipe",src: stream.Readable,): boolean Parameters event: "pipe" src: stream.Readable Return Type boolean Http2Stream.emit(event: "unpipe",src: stream.Readable,): boolean Parameters event: "unpipe" src: stream.Readable Return Type boolean Http2Stream.emit(event: "streamClosed",code: number,): boolean Parameters event: "streamClosed" code: number Return Type boolean Http2Stream.emit(event: "timeout"): boolean Parameters event: "timeout" Return Type boolean Http2Stream.emit(event: "trailers",trailers: IncomingHttpHeaders,flags: number,): boolean Parameters event: "trailers" trailers: IncomingHttpHeaders flags: number Return Type boolean Http2Stream.emit(event: "wantTrailers"): boolean Parameters event: "wantTrailers" Return Type boolean Http2Stream.emit(event: string | symbol,...args: any[],): boolean Parameters event: string | symbol ...args: any[] Return Type boolean