From b5a81d51ab490e5e8f405a18a5859f624d7b0b93 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 31 Aug 2022 20:38:28 -0400 Subject: [PATCH] Revert "*Change end to close" This reverts commit 14d6888baf4d0ca5707e912987f163de857d957c. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2cbd8f9..8666cd0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -166,7 +166,7 @@ export class Socket extends EventEmitter { callModule(DHT_MODULE, "write", { id: this.id, message }); } - close(): void { + end(): void { callModule(DHT_MODULE, "socketExists", { id: this.id }).then( ([exists]: ErrTuple) => { if (exists) {