2.1.2 • Published 8 years ago

lsi-stats-server v2.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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>
2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago