diff --git a/src/stream.ts b/src/stream.ts index c203099..e2a8ebc 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -98,7 +98,7 @@ export class QuicStream implements Stream { while (true) { this.log.trace('', this.id, 'reading') const chunk = Buffer.allocUnsafe(CHUNK_SIZE) - const length = await this.#stream.read5(chunk) + const length = await this.#stream.read(chunk) if (length == null) { this.log.trace('', this.id, 'no more data') break @@ -125,7 +125,7 @@ export class QuicStream implements Stream { for await (const chunk of source) { const data = chunk instanceof Uint8ArrayList ? chunk.subarray() : chunk this.log.trace('', this.id, 'writing', data.length, 'bytes') - await this.#stream.write4(data) + await this.#stream.write(data) this.log.trace('', this.id, 'wrote', data.length, 'bytes') } } catch (e) {