(json: string)
| 20 | } |
| 21 | |
| 22 | function encodeJSONFrame(json: string): Uint8Array { |
| 23 | return encodeFrame(FrameType.JSON, 0, new TextEncoder().encode(json)) |
| 24 | } |
| 25 | |
| 26 | function encodeChunkFrame(streamId: number, data: Uint8Array): Uint8Array { |
| 27 | return encodeFrame(FrameType.CHUNK, streamId, data) |
no test coverage detected