diff --git a/src/index.ts b/src/index.ts index 7e196e0..6cc37bb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -28,9 +28,10 @@ export class SwarmClient extends Client { return createSocket(resp.id); } - + async init(): Promise { + return this.callModuleReturn("init", { swarm: this.swarm }); + } async ready(): Promise { - const dht = !this.useDefaultSwarm ? this.id : undefined; return this.callModuleReturn("ready", { swarm: this.swarm }); }