*Add init method

This commit is contained in:
Derrick Hammer 2023-02-01 08:47:19 -05:00
parent ebe2a18d91
commit 4359c590ba
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 2 deletions

View File

@ -28,9 +28,10 @@ export class SwarmClient extends Client {
return createSocket(resp.id);
}
async init(): Promise<ErrTuple> {
return this.callModuleReturn("init", { swarm: this.swarm });
}
async ready(): Promise<ErrTuple> {
const dht = !this.useDefaultSwarm ? this.id : undefined;
return this.callModuleReturn("ready", { swarm: this.swarm });
}