Event received from browser to browser going through 1 network node

This commit is contained in:
Luis Fernando Molina committed 2021-11-10 12:44:50 +01:00
1 parent 578f36eceb
commit c5564f1e69
5 files changed
+21 -23

No files matched your search

@@ -7,7 +7,7 @@ exports.newSocialTradingModulesP2PNetworkInterface = function newSocialTradingMo
by the user running this app, in particular trading events.
*/
let thisObject = {
messageReceived: messageReceived,
eventReceived: eventReceived,
initialize: initialize,
finalize: finalize
}
@@ -22,8 +22,7 @@ exports.newSocialTradingModulesP2PNetworkInterface = function newSocialTradingMo
}
async function messageReceived(message) {
message.messageId = undefined
DK.webSocketsInterface.sendToWebApp(JSON.stringify(response))
async function eventReceived(event) {
DK.desktopApp.webSocketsInterface.sendToWebApp(JSON.stringify(event))
}
}