diff --git a/src/index.ts b/src/index.ts index db3c46f..da0435c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,7 +50,7 @@ export class SwarmClient extends Client { return this.callModuleReturn("getRelays", { swarm: this.swarm }); } - join(topic: Buffer): void { + public async join(topic: Buffer): Promise { this.callModule("join", { id: this.id, topic }); } }