25 lines
594 B
JavaScript
25 lines
594 B
JavaScript
exports.newNetworkNode = function newNetworkNode() {
|
|
|
|
let thisObject = {
|
|
run: run
|
|
}
|
|
|
|
return thisObject
|
|
|
|
function run() {
|
|
/*
|
|
Let's start the Network Interfaces
|
|
*/
|
|
NT.webSocketsInterface = NT.projects.network.modules.webSocketsInterface.newNetworkModulesWebSocketsInterface()
|
|
NT.webSocketsInterface.initialize()
|
|
|
|
start()
|
|
|
|
async function start() {
|
|
let socialGraphService = NT.projects.socialTrading.modules.socialGraph.newSocialGraph()
|
|
await socialGraphService.initialize()
|
|
}
|
|
|
|
}
|
|
}
|