Compare commits
2 Commits
e5ed06e1df
...
5f3056d697
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 5f3056d697 | |
Derrick Hammer | fcf3c9d4f0 |
|
@ -2,6 +2,7 @@ import { Client } from "@lumeweb/libkernel-universal";
|
|||
import type { Peer } from "@lumeweb/peer-discovery";
|
||||
export declare class PeerDiscoveryClient extends Client {
|
||||
register(source: string): Promise<void>;
|
||||
registerSelf(): Promise<void>;
|
||||
remove(name: string): Promise<boolean>;
|
||||
removeAll(): Promise<void>;
|
||||
exists(name: string): Promise<boolean>;
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,mBAAoB,SAAQ,MAAM;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGtC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC;CAW5E;AAED,eAAO,MAAM,YAAY,uCAGxB,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,mBAAoB,SAAQ,MAAM;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGtC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC;CAW5E;AAED,eAAO,MAAM,YAAY,uCAGxB,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@ -6,6 +6,9 @@ export class PeerDiscoveryClient extends Client {
|
|||
const ret = await bag.callModule("register");
|
||||
this.handleError(ret);
|
||||
}
|
||||
async registerSelf() {
|
||||
return await this.callModuleReturn("register");
|
||||
}
|
||||
async remove(name) {
|
||||
return await this.callModuleReturn("remove", { name });
|
||||
}
|
||||
|
|
|
@ -8,6 +8,10 @@ export class PeerDiscoveryClient extends Client {
|
|||
this.handleError(ret);
|
||||
}
|
||||
|
||||
public async registerSelf(): Promise<void> {
|
||||
return await this.callModuleReturn("register");
|
||||
}
|
||||
|
||||
public async remove(name: string): Promise<boolean> {
|
||||
return await this.callModuleReturn("remove", { name });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue