Fixing Port Numbers
This commit is contained in:
1 parent
fd7f970304
commit
38b88a589b
3 files changed
+13
-9
No files matched your search
@@ -8,16 +8,14 @@ exports.newDesktopApp = function newDesktopApp() {
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
/*
|
/*
|
||||||
Heree we will store our running objects:
|
Here we will store our running objects:
|
||||||
*/
|
*/
|
||||||
DK.running = {}
|
DK.running = {}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is the Web Sockets client that interacts with the Superalgos Network.
|
This is the Personal Social Graph for the user running this App.
|
||||||
*/
|
*/
|
||||||
DK.running.socialGraph = DK.projects.socialTrading.modules.socialGraph.newSocialTradingModulesSocialGraph()
|
DK.running.socialGraph = DK.projects.socialTrading.modules.socialGraph.newSocialTradingModulesSocialGraph()
|
||||||
await DK.running.socialGraph.initialize()
|
await DK.running.socialGraph.initialize()
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is the Web Sockets client that interacts with the Superalgos Network.
|
This is the Web Sockets client that interacts with the Superalgos Network.
|
||||||
*/
|
*/
|
||||||
@@ -25,11 +23,11 @@ exports.newDesktopApp = function newDesktopApp() {
|
|||||||
await DK.running.webSocketsClient.initialize()
|
await DK.running.webSocketsClient.initialize()
|
||||||
console.log('Desktop Client Connected to Network Node via Web Sockets ................... Connected to port ' + global.env.NETWORK_WEB_SOCKETS_INTERFACE_PORT)
|
console.log('Desktop Client Connected to Network Node via Web Sockets ................... Connected to port ' + global.env.NETWORK_WEB_SOCKETS_INTERFACE_PORT)
|
||||||
|
|
||||||
/* These are the Network Interfaces by which the UI interacts with the Desktop App.*/
|
/* These are the Network Interfaces by which the Web App interacts with this Desktop Client.*/
|
||||||
|
|
||||||
DK.running.webSocketsInterface = DK.projects.socialTrading.modules.webSocketsInterface.newDesktopModulesWebSocketsInterface()
|
DK.running.webSocketsInterface = DK.projects.socialTrading.modules.webSocketsInterface.newDesktopModulesWebSocketsInterface()
|
||||||
DK.running.webSocketsInterface.initialize()
|
DK.running.webSocketsInterface.initialize()
|
||||||
console.log('Desktop Client Web Sockets Interface ....................................... Listening at port ' + global.env.PLATFORM_WEB_SOCKETS_INTERFACE_PORT)
|
console.log('Desktop Client Web Sockets Interface ....................................... Listening at port ' + global.env.DESKTOP_WEB_SOCKETS_INTERFACE_PORT)
|
||||||
|
|
||||||
|
|
||||||
DK.running.httpInterface = DK.projects.socialTrading.modules.httpInterface.newDesktopModulesHttpInterface()
|
DK.running.httpInterface = DK.projects.socialTrading.modules.httpInterface.newDesktopModulesHttpInterface()
|
||||||
|
|||||||
@@ -4,8 +4,14 @@ exports.newSocialTradingModulesSocialGraph = function newSocialTradingModulesSoc
|
|||||||
the user profile of the user of the Desktop App. A personal social
|
the user profile of the user of the Desktop App. A personal social
|
||||||
graph is very similar to the one mantained at a Netwrok Node,
|
graph is very similar to the one mantained at a Netwrok Node,
|
||||||
the mainn difference is that it only includes information relevant
|
the mainn difference is that it only includes information relevant
|
||||||
to this particular user, and not for al the users in the system
|
to this particular user, and not for all Superalgos users
|
||||||
as in the Network Node.
|
as in the Network Node.
|
||||||
|
|
||||||
|
Why we need this?
|
||||||
|
|
||||||
|
Because we need to minimize the calls to the network. There might be
|
||||||
|
information that the web app needs that we already have, so there is
|
||||||
|
no need to ask it to a network node.
|
||||||
*/
|
*/
|
||||||
let thisObject = {
|
let thisObject = {
|
||||||
initialize: initialize,
|
initialize: initialize,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ exports.newDesktopModulesWebSocketsInterface = function newDesktopModulesWebSock
|
|||||||
webApp = {
|
webApp = {
|
||||||
socket: socket
|
socket: socket
|
||||||
}
|
}
|
||||||
console.log('Desktop Web App Connected to Web Sockets Interface ......................... Connected to port ' + global.env.PLATFORM_WEB_SOCKETS_INTERFACE_PORT)
|
console.log('Desktop Web App Connected to Web Sockets Interface ......................... Connected to port ' + global.env.DESKTOP_WEB_SOCKETS_INTERFACE_PORT)
|
||||||
|
|
||||||
webApp.socket.on('close', onConnectionClosed)
|
webApp.socket.on('close', onConnectionClosed)
|
||||||
webApp.socket.on('message', onMenssage)
|
webApp.socket.on('message', onMenssage)
|
||||||
@@ -92,7 +92,7 @@ exports.newDesktopModulesWebSocketsInterface = function newDesktopModulesWebSock
|
|||||||
|
|
||||||
function onConnectionClosed() {
|
function onConnectionClosed() {
|
||||||
webApp = undefined
|
webApp = undefined
|
||||||
console.log('Desktop Web App Discoonnected from Web Sockets Interface ................... Disonnected from port ' + global.env.PLATFORM_WEB_SOCKETS_INTERFACE_PORT)
|
console.log('Desktop Web App Discoonnected from Web Sockets Interface ................... Disonnected from port ' + global.env.DESKTOP_WEB_SOCKETS_INTERFACE_PORT)
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in new issue
Block a user