*Add registerSelf method to be called from within a module
This commit is contained in:
parent
e5ed06e1df
commit
fcf3c9d4f0
|
@ -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 });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue