Hi Giuseppe,
Thank you for the reply.
I'm using the client version 6.1.4 in Node.js along with the IG Bank servers.
(npm install lightstreamer-client@6.1.4 as seen in this post http://forums.lightstreamer.com/show...tication/page2)
I used the the following url as requested.
Code:
var lsClient = new ls.LightstreamerClient("http://push.lightstreamer.com","DEMO");
CONNECTING
CONNECTED:STREAM-SENSING
CONNECTED:WS-STREAMING
SUBSCRIBED
Ations Europe: 18.0
Bagies Consulting: 7.23
Anduct: 2.99
Ations Europe: 17.99
Ations Europe: 17.91
Ations Europe: 18.0
Ations Europe: 17.96
Bagies Consulting: 7.26
Ations Europe: 18.1
Ations Europe: 18.09
Bagies Consulting: 7.31
Ations Europe: 17.93
Ations Europe: 18.08
STALLED
UNSUBSCRIBED
DISCONNECTED:WILL-RETRY
CONNECTING
DISCONNECTED:WILL-RETRY
As you can see I still have the same issue.
For the logging, I wasn't able to use your code in my Node app, sorry..
Used the sample code provided in your docs
Code:
var ls = require("lightstreamer-client");
var lsClient = new ls.LightstreamerClient("http://push.lightstreamer.com","DEMO");
lsClient.connect();
var testSubscription = new ls.Subscription("MERGE",["item1","item2","item3"],["stock_name","last_price"]);
testSubscription.setDataAdapter("QUOTE_ADAPTER");
testSubscription.setRequestedSnapshot("yes");
lsClient.subscribe(testSubscription);
lsClient.addListener({
onStatusChange: function(newStatus) {
console.log(newStatus);
}
});
testSubscription.addListener({
onSubscription: function() {
console.log("SUBSCRIBED");
},
onUnsubscription: function() {
console.log("UNSUBSCRIBED");
},
onItemUpdate: function(obj) {
console.log(obj.getValue("stock_name") + ": " + obj.getValue("last_price"));
}
});
Bookmarks