From d4d6e38eb1e4fd1fa00a974f279ea49ecb4703b3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 2 Sep 2023 12:58:42 -0400 Subject: [PATCH] fix: implement end --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 92e5467..25d8ee5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,4 +85,9 @@ export default class HyperTransportPeer extends BasePeer { sendMessage(message: Uint8Array): void { this._pipe.send(message); } + + end(): void { + this._pipe.end(); + this._socket.end(); + } }