compare channel id on value basis
This commit is contained in:
parent
72d7ffd5c0
commit
0a89138a79
@ -74,7 +74,7 @@ class XhrListener {
|
|||||||
public relayEvent(event: string, archMsg: ArchimedesMessage): boolean {
|
public relayEvent(event: string, archMsg: ArchimedesMessage): boolean {
|
||||||
logger.debugLog.info(`XhrListener:relayEvent(event: ${event}, channel: ${archMsg.reservation_no})`);
|
logger.debugLog.info(`XhrListener:relayEvent(event: ${event}, channel: ${archMsg.reservation_no})`);
|
||||||
for (let c of this.#cm.channels) {
|
for (let c of this.#cm.channels) {
|
||||||
if (archMsg.reservation_no === c.id) {
|
if (archMsg.reservation_no == c.id) {
|
||||||
let dmCount: number = 0;
|
let dmCount: number = 0;
|
||||||
for (let client of c.clients) {
|
for (let client of c.clients) {
|
||||||
let nonce: string = crypto.randomBytes(4).toString("hex");
|
let nonce: string = crypto.randomBytes(4).toString("hex");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user