*Join added to the wrong class
This commit is contained in:
parent
8ec7444770
commit
7fa2a83141
|
@ -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] = [];
|
||||||
|
|
Loading…
Reference in New Issue