*Join added to the wrong class

This commit is contained in:
Derrick Hammer 2023-02-01 14:06:13 -05:00
parent 8ec7444770
commit 7fa2a83141
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -49,6 +49,10 @@ export class SwarmClient extends Client {
public async getRelays(): Promise<string[]> { public async getRelays(): Promise<string[]> {
return this.callModuleReturn("getRelays", { swarm: this.swarm }); return this.callModuleReturn("getRelays", { swarm: this.swarm });
} }
join(topic: Buffer): void {
this.callModule("join", { id: this.id, topic });
}
} }
export class Socket extends Client { export class Socket extends Client {
@ -100,10 +104,6 @@ export class Socket extends Client {
); );
} }
join(topic: Buffer): void {
this.callModule("join", { id: this.id, topic });
}
private ensureEvent(event: string): void { private ensureEvent(event: string): void {
if (!(event in this.eventUpdates)) { if (!(event in this.eventUpdates)) {
this.eventUpdates[event] = []; this.eventUpdates[event] = [];