(data: string, binary: boolean)
| 742 | } |
| 743 | |
| 744 | function decodeChunkData(data: string, binary: boolean): Uint8Array { |
| 745 | if (binary) { |
| 746 | return new Uint8Array(Buffer.from(data, "base64")); |
| 747 | } |
| 748 | return sharedTextEncoder.encode(data); |
| 749 | } |
| 750 | |
| 751 | function decodeFrame(chunk: Uint8Array): string { |
| 752 | return sharedTextDecoder.decode(chunk); |
no outgoing calls
no test coverage detected
searching dependent graphs…