Class SharedServerDataManager
Class defined in:src/node-sharedserverdata.js:16
SharedServerDataManager container object.
The dataStructure is:
this.dataStructure is an object with:
this.dataStructure.allValues = {};
object to hold all tracked values
example this.dataStructure.allValues['nameOfvalue'] =
SharedServerDataManager
( clients
)
src/node-sharedserverdata.js:16
Parameters:
-
clients
<Array>- A reference to the client list.
getAllTrackedValues
( wsio, data
)
src/node-sharedserverdata.js:251
Will respond back once to the app giving the func an array of tracked values. They will be in an array of objects with properties nameOfValue and value. NOTE: this could be a huge array.
Parameters:getAllTrackedValues
( wsio, data
)
src/node-sharedserverdata.js:277
Gets all tracked value names and descriptions, gives to requesting app.
Parameters:getValue
( wsio, data
)
src/node-sharedserverdata.js:128
Checks if there is a value, and if so will send the value. If the value doesn't exist, it will not do anything.
Parameters:removeValue
( wsio, data
)
src/node-sharedserverdata.js:158
Checks if there is a value, and if so will send the value. If the value doesn't exist, it will not do anything.
Parameters:setValue
( wsio, data, clients
)
src/node-sharedserverdata.js:55
Sets the value of specified server data. If it doesn't exist, will create it.
Parameters:subscribeToNewValueNotification
( wsio, data
)
src/node-sharedserverdata.js:300
Will send a notification to app when a new value gets created. App will get the value's name and description.
NOTE: this could be a huge array.
Parameters:subscribeToValue
( wsio, data
)
src/node-sharedserverdata.js:203
Add the app to the named values a subscriber. If the value doesn't exist, it will create a "blank" value and subscribe to it.
Parameters:updateInformationAboutConnections
( clients, sagePointers
)
src/node-sharedserverdata.js:333
Updates the stored information about connections. Currently updates three values for: UI, displays, remote servers. Users information from the clients array.
Parameters:updateInformationAboutConnectionsFailedRemoteSite
( wsio
)
src/node-sharedserverdata.js:387
Updates the stored information about failed remote site connections.
Parameters:-
wsio
<Object>- The websocket of sender.