Hi,
I have a push page which able to open with IE and also able to receive push data from Lightstreamer server. But when I try open it in firefox, there was no data showing and the engine seems cannot connect and keep attempt to connect to the Lightstreamer server. Following are my code on the engine configuration:
var lsPage = new PushPage();
var debugAlerts = true;
var remoteAlerts = true;
var pushHost = null;
var pushPort = 8080;
debugAlerts = true;
remoteAlerts = true;
pushHost = document.domain;
lsPage.context.setDebugAlertsOnClientError(debugAlerts);
lsPage.context.setRemoteAlertsOnClientError(remoteAlerts);
lsPage.onEngineCreation = function(lsEngine) {
lsEngine.context.setDebugAlertsOnClientError(debugAlerts);
lsEngine.context.setRemoteAlertsOnClientError(remoteAlerts);
lsEngine.connection.setLSHost(pushHost);
lsEngine.connection.setLSPort(pushPort);
lsEngine.connection.setAdapterName("RBMS");
lsEngine.policy.setMaxBandwidth(200);
lsEngine.policy.setIdleTimeout(30000);
lsEngine.policy.setPollingInterval(10000);
//lsEngine.onStatusChange = ChangeWindowStatus;
lsEngine.changeStatus("STREAMING");
}
lsPage.bind();
lsPage.createEngine("HelloWorldApp","LS","SHARE_SESSION");
/////////////////////////////////table handler
var commandTable = new NonVisualTable("NewUser", schemaCommand, "COMMAND");
//TABLE
commandTable.setSnapshotRequired(true);
commandTable.setRequestedMaxFrequency(0.5);
//NonVisualtable
commandTable.onItemUpdate = myUpdateHandler;
lsPage.addTable(commandTable, "news");
and from the server, I am keep watching the following command on each time firefox connecting to the server:
20.Aug.09 10:53:09,549 < INFO> Serving request: /lightstreamer/create_session.ht
ml?LS_phase=6301&LS_requested_max_bandwidth=200&LS_polling=true&LS_polling_milli
s=10000&LS_idle_millis=30000&LS_client_version=4.3&LS_adapter=RBMS& from 192.168
.1.21:1256
20.Aug.09 10:53:09,549 < WARN> Bandwidth control request ignored
20.Aug.09 10:53:09,549 < INFO> Starting new session: Sa889b5620686f3a6T5309549 f
rom 192.168.1.21:1256
20.Aug.09 10:53:09,549 <TRACE> RELEASING DATA --> HTTP/1.0 200 OK
Date: Thu, 20 Aug 2009 02:53:09 GMT
Server: Lightstreamer/3.5 build 1428.4 (Lightstreamer Push Server - www.lightstr
eamer.com) Moderato edition
Content-Type: text/html; charset=iso-8859-1
Cache-Control: no-store
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 1 Jan 1970 00:00:00 GMT
Content-Length: 927
Connection: Keep-Alive
<!--
-- LIGHTSTREAMER
-- Live Web Content Delivery
--
-- www.lightstreamer.com - info@lightstreamer.com
--
-- Copyright (c) 2004-2008 Weswit s.r.l. All Rights Reserved.
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="Thu, 1 Jan 1970 00:00:00 GMT">
<title>Lightstreamer is pushing...</title>
<script language="JavaScript" src="/lightstreamer/pushFrameSettings.js">
</script>
</head>
<body onload="if (! clsd) { retry(); }">
<script>setPhase(6301);</script><script>start('Sa889b5620686f3a6T5309549', null,
30000, 50000, 'Lightstreamer HTTP Server');</script><script>s0(0.0,1.0,-1.0);</
script><script>loop(10000);</script><script>
end(); clsd = true;
</script>
</body>
</html>
Appreciated if someone can help. Thank you.
Chuan