From 4977f88d55943d7005dce4f0375bd281f7d197f4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Feb 2023 20:06:46 -0500 Subject: [PATCH] *Mixed up code --- src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0dad892..cd13156 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,8 +8,6 @@ import type { EventEmitter } from "eventemitter3"; // @ts-ignore import Backoff from "backoff.js"; -const PROTOCOL = "lumeweb.proxy.handshake"; - export class SwarmClient extends Client { private useDefaultSwarm: boolean; private id: number = 0; @@ -108,7 +106,7 @@ export class SwarmClient extends Client { public async join(topic: Buffer | Uint8Array | string): Promise { if (typeof topic === "string") { - topic = blake2b(PROTOCOL); + topic = blake2b(topic); } this._topics.add(topic);