Hi, very good example, i suppose the code for this is only in the client side and it is trivial(we just create OverwriteTables for each item. So in fact i will have only to items. One other thing, i am using NonVisualTables (where could i find docs about these tables?), is it possible to be done with NVT?
From the demo it looks like that may I) approach could work well! I do not want to limit the messages send to the client , in fact they must be as real time as possible. Also the messages freq is about 3-7 per sec from feed i.e. about 11 if i send them all to the client.
I will try to implement it like the demo.
Could you tell me when the subscription is done? Here is my code:
Code:
var page = new $wnd.PushPage();
page.context.setDomain(prop['domain']);
page.onEngineCreation = function(engine) {
engine.connection.setLSHost(prop['host']);
engine.connection.setLSPort(prop['port']);
engine.connection.setAdapterName(prop['adapter_root']);
engine.changeStatus("STREAMING");
}
page.bind();
page.createEngine("ManualBetApp", "/js/ts/2/ls/", "SHARE_SESSION");
var nvt = new $wnd.NonVisualTable(group, schema,"DISTINCT");
nvt.setDataAdapter(prop['adapter_name']);
nvt.setSnapshotRequired(true);
nvt.onItemUpdate = function(item, itemUpdate, itemName) {
if (itemUpdate.isValueChanged("message")) {
var msg = itemUpdate.getNewValue("message");
thiz.@claire.web.util.client.PricingManager::onTickData(ILjava/lang/String;)(0, msg);
}
Is it when this is called : engine.changeStatus("STREAMING"); ?
Bookmarks