30 lines
863 B
JavaScript
30 lines
863 B
JavaScript
exports.newSocialTradingModulesSocialGraph = function newSocialTradingModulesSocialGraph() {
|
|
/*
|
|
This module mantains in memory the personal social graph for
|
|
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,
|
|
the mainn difference is that it only includes information relevant
|
|
to this particular user, and not for all Superalgos users
|
|
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 = {
|
|
initialize: initialize,
|
|
finalize: finalize
|
|
}
|
|
|
|
return thisObject
|
|
|
|
function finalize() {
|
|
|
|
}
|
|
|
|
function initialize() {
|
|
|
|
}
|
|
} |