let lsData = JSON.parse(localStorage.getItem('WLLSData'));
this.lsClient = new LightstreamerClient("http://url:8080", lsData.adapter);
this.lsClient.connectionSharing.enableSharing("WLC ommonConnection", "ATTACH", "CREATE");
this.lsClient.connectionOptions.setHttpExtraHeader s({ "username": lsData.username });
this.lsClient.connect();
this.dynasubscription = new Subscription("COMMAND", "lmxtrade" , this.dynafieldNames);
this.dynasubscription.setDataAdapter(lsData.provid er);
this.dynasubscription.setRequestedSnapshot("yes");
var liverateGrid = new DynaGrid("liverates",true);
liverateGrid.setNodeTypes(["div","span","img","a"]);
liverateGrid.setAutoCleanBehavior(true,false);
liverateGrid.addListener({
onVisualUpdate: function(key, info, domNode) {
console.log(info);
},
onItemUpdate: (updateObject) => {
var itemName = updateObject.getItemName();
console.log(itemName);
}
});
console.log(liverateGrid);
this.lsClient.subscribe(this.dynasubscription);
Bookmarks