From c7b64064ad75e79c6fb356937310f38ac5af9937 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 Jul 2022 21:39:16 -0400 Subject: [PATCH] *_relays is a map --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index be13b5b..c9fcb1f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -67,7 +67,7 @@ export default class DHT { return false; } - this._relays[pubkey] = `wss://${domain}:${port}/`; + this._relays.set(pubkey, `wss://${domain}:${port}/`); if (this._inited) { await this.fillConnections();