From 0a89138a793537b67c47c8df8e64c97dfc851acc Mon Sep 17 00:00:00 2001 From: Maciek Nowacki Date: Fri, 12 Mar 2021 10:26:43 -0700 Subject: [PATCH] compare channel id on value basis --- src/xhrListener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xhrListener.ts b/src/xhrListener.ts index 8b72dc7..39617e7 100644 --- a/src/xhrListener.ts +++ b/src/xhrListener.ts @@ -74,7 +74,7 @@ class XhrListener { public relayEvent(event: string, archMsg: ArchimedesMessage): boolean { logger.debugLog.info(`XhrListener:relayEvent(event: ${event}, channel: ${archMsg.reservation_no})`); for (let c of this.#cm.channels) { - if (archMsg.reservation_no === c.id) { + if (archMsg.reservation_no == c.id) { let dmCount: number = 0; for (let client of c.clients) { let nonce: string = crypto.randomBytes(4).toString("hex");