From 940d768d5babb65b0ca268fac20c193debf2d65d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Sep 2023 02:30:10 -0400 Subject: [PATCH] fix: use send not write --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2deb75d..92e5467 100644 --- a/src/index.ts +++ b/src/index.ts @@ -83,6 +83,6 @@ export default class HyperTransportPeer extends BasePeer { } sendMessage(message: Uint8Array): void { - this._pipe.write(message); + this._pipe.send(message); } }