Lightstreamer Client
Use
Install the package using npm
npm install lightstreamer-client
Create a client and connect
var ls = ;var lsClient = "http://push.lightstreamer.com""DEMO"; lsClient;
Create a Subscription and send it to the server
var testSubscription = "MERGE""item1""item2""item3""stock_name""last_price";testSubscription;testSubscription;lsClient;
Listen for events
lsClient; testSubscription;
For further details check the API, the Developer Guide and the available examples