lsi-stats-server
v2.1.2
Published
NodeJs interface for LSI Stats Server
Downloads
19
Readme
LSI Stats Server Interface
This library can be used to publish variable updates to LSI Stats Server.
Usage example:
var StatsServer = require('lsi-stats-server')
var server = new StatsServer({
host : "127.0.0.1", // optional: network interface
port : 6464, // required: server port
verbose : <boolean>, // optional: show client connectivity
trace : <boolean>, // optional: show variable dispatch
onStart : <function>, // optional: callback, invoked when first client connects
onStop : <function> // optional: callback, invoked when last client disconnects
});
var value = "test value";
server.push("PATH\\TO\\VARIABLE",value);
To connect Stats Server to this server, you have to add networkclient
directive to the config file as follows:
<statserver_config>
<dataserver name="stats-client">
<networkclient name="stats-network-client-A" host="127.0.0.1:6464" />
</dataserver>
</statserver_config>