Hello,

I am subscribing to a created engine and adding some tables and everything works great until the engine gets disconnected (connection dropped and reestablished). At this point the engine successfully reconnects but only the last table added to the pushTable is working. Also I was wondering, shouldn´t the onEngineLost of my pushTable be called when this happens? No event is called nor when the connections is dropped or when the connection is restablished.

Just to make it more clear, until the point of disconnect, everything works as expected!


The code I am using is this:

var pushPage = new PushPage();
pushPage.context.setDebugAlertsOnClientError(true) ; // (set false in production)
pushPage.context.setDomain("xxx.com"); // (set the domain when deploying on web server)

pushPage.onEngineCreation = function(lsEngine) {
alert("onEngineCreation");
};

pushPage.onEngineLost = function() {
alert("onEngineLost");
};
pushPage.onEngineReady = function(lsEngine) {
alert("onEngineReady");
};

pushPage.bind();
pushPage.seekEngine("DemoCommonEngine"); //Same name as used on CreateEngine

//Add several tables on a loop like this

var schema = ["c1", "c2"];
var tableName = "xxx";
var dataAdapter = "yyy";

for(var i=0; i<3; i++)
{

var table = new NonVisualTable(tableName + i, schema, "MERGE");
table.setDataAdapter(dataAdapter);
table.setSnapshotRequired(true);

//Set the event to be consumed on update
table.onItemUpdate = function()
{
alert("onItemUpdate");
}

// bring the table to running state
pushPage.addTable(table, "T_" + tableName + i);

}

Am I missing something?

Regards,

Sebastian Andres