Skip to content

Commit

Permalink
fix bug in feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tubleronchik committed Aug 7, 2024
1 parent f80b1be commit 541c884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 541c884

Please sign in to comment.