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) {