lightstreamDev
Hi,
Though it is discussed many times in the forum, I have a simple situation and still its not working. The push server URL(UNIX dev server) is something like
'push-s1.mycompany.com' and the web url( the web code is deployed in my local system) <<compname-number.mycompany.com"
I have the code like this:
lsPage.onEngineCreation = function(lsEngine)
{
lsEngine.context.setDebugAlertsOnClientError(true);
lsEngine.context.setRemoteAlertsOnClientError(true);
lsPage.context.setDomain('mycompany.com');
lsEngine.connection.setLSHost('push-s1.mycompany.com');
lsEngine.connection.setLSPort('8085');
lsEngine.connection.setAdapterName("SomeName");
// set the requested bandwidth
lsEngine.policy.setMaxBandwidth(actualBW);
}
But still I am getting 'Permission Denied' issue. The lightstreamer URL is:
http://'push-s1.mycompany.com:8085/lightstreamer/create_session.html?LS_phase=3622&LS_polling=true&LS_polling_millis=0&LS_idle_millis=30000&LS_client_version=4.3&LS_adapter=SomeName&
The server logs also show serving issue. Hence I think its cross domain scripting browser error only. I may need to move to HTTPS in sometime but I am facing issue with HTTP itself. Can somebody help me to overcome this issue?
Dario Crivelli
You should issue lsPage.context.setDomainbefore calling createEngine (which, in turn, precedes the invocation to onEngineCreation).
When setDomainis invoked at the proper time, you should see your domain reported in the create_session URL.