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