()
| 1021 | } |
| 1022 | |
| 1023 | function takeBuffer(): NonEmptyReadonlyArray<Uint8Array | string> { |
| 1024 | const chunk = buffer |
| 1025 | buffer = [] |
| 1026 | bufferSize = 0 |
| 1027 | if (error === undefined) resumeWebSocket() |
| 1028 | return chunk as unknown as NonEmptyReadonlyArray<Uint8Array | string> |
| 1029 | } |
| 1030 | |
| 1031 | function deliver() { |
| 1032 | if (waiter === undefined || buffer.length === 0) return |
no test coverage detected