From fcf3c9d4f05925fdf44a5b0ad6b955d98f7961c2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 31 Jan 2023 09:01:30 -0500 Subject: [PATCH] *Add registerSelf method to be called from within a module --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 44379ea..fdea140 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,10 @@ export class PeerDiscoveryClient extends Client { this.handleError(ret); } + public async registerSelf(): Promise { + return await this.callModuleReturn("register"); + } + public async remove(name: string): Promise { return await this.callModuleReturn("remove", { name }); }