Lightstreamer Client
⚠️ This library is deprecated!
Use the new Lightstreamer Client Node.js SDK or Lightstreamer Client Web SDK instead.
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 and the available examples