From 541c88486ca23c08f5584cb4d46430b052e4ecf1 Mon Sep 17 00:00:00 2001 From: tubleronchik Date: Wed, 7 Aug 2024 14:20:07 +0200 Subject: [PATCH] fix bug in feedback --- src/messageHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messageHandler.js b/src/messageHandler.js index 0787fb0..7055623 100644 --- a/src/messageHandler.js +++ b/src/messageHandler.js @@ -124,7 +124,7 @@ export class MessageHandler { if (serverPeerId) { if (this.libp2pManager.findConnectionByPeerId(node, serverPeerId)) { const connection = this.libp2pManager.findConnectionByPeerId(node, serverPeerId); - this.libp2pManager.sendMsg(connection, msg.data, protocol); + this.libp2pManager.sendMsg(connection, msg.data, protocol, ws); } else { this.libp2pManager.connect2NodeViaRelay(node, serverPeerId).then((connection) => { this.libp2pManager.sendMsg(connection, msg.data, protocol, ws);