(streamId: number, message: string)
| 61 | } |
| 62 | |
| 63 | function encodeErrorFrame(streamId: number, message: string): Uint8Array { |
| 64 | return encodeFrame( |
| 65 | FRAME_TYPE_ERROR, |
| 66 | streamId, |
| 67 | new TextEncoder().encode(message), |
| 68 | ) |
| 69 | } |
| 70 | |
| 71 | async function readBytes( |
| 72 | reader: ReadableStreamDefaultReader<Uint8Array>, |
no test coverage detected