*Add registerSelf method to be called from within a module

This commit is contained in:
Derrick Hammer 2023-01-31 09:01:30 -05:00
parent e5ed06e1df
commit fcf3c9d4f0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ export class PeerDiscoveryClient extends Client {
this.handleError(ret); this.handleError(ret);
} }
public async registerSelf(): Promise<void> {
return await this.callModuleReturn("register");
}
public async remove(name: string): Promise<boolean> { public async remove(name: string): Promise<boolean> {
return await this.callModuleReturn("remove", { name }); return await this.callModuleReturn("remove", { name });
} }