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); } }