-
March 22nd, 2009, 02:20 AM
#21
Hi again,
I'm now trying to work on the real example on my machine and am coming across the same problem when I add the "environment" to the URL (local, uat, stage... etc).
The set up is as follows:
Domain: local.mysite.com
Web: local.www.mysite.com
Port: 8071
Lighstreamer: local.lightstreamer.mysite.com
Lightstreamer Port: 8090
However I have a feeling that the entries in my host file conflicts with how the domain is being interpreted.
127.0.0.1 local.mysite.com.au
127.0.0.1 local.www.mysite.com.au
127.0.0.1 local.lightstreamer.mysite.com.au
127.0.0.1 local.www.lightstreamer.mysite.com.au
This is what I have on the client side:
<script language="JavaScript" src="http://local.www.mysite.com.au:8071/lightstreamer/js/lscommons.js"></script>
<script language="JavaScript" src="http://local.www.mysite.com.au:8071/lightstreamer/js/lspushpage.js"></script>
<div table="hellotable" item="item-test" field="field1">
loading...
</div>
<script>
var page = new PushPage();
page.context.setDomain("local.www.mysite.com.au");
page.onEngineCreation = function(engine) {
engine.context.setDebugAlertsOnClientError(true);
engine.connection.setLSHost("local.www.lightstream er.mysite.com.au");
engine.connection.setLSPort(8090);
engine.connection.setAdapterName("PROXY_HELLOWORLD _SOCKETS");
engine.changeStatus("STREAMING");
}
page.bind();
page.createEngine("HelloWorldApp", "lightstreamer/js", "SHARE_SESSION");
var pushtable = new OverwriteTable(null, null, "MERGE");
pushtable.setPushedHtmlEnabled(true);
pushtable.setSnapshotRequired(true);
page.addTable(pushtable, "hellotable");
</script>
I also noticed that I needed to specifically put the "www" in the page domain and lightstreamer host.
Many Thanks,
C
Similar Threads
-
By dimitarn in forum Client SDKs
Replies: 6
Last Post: March 26th, 2010, 04:09 PM
-
By ningping in forum Client SDKs
Replies: 1
Last Post: August 6th, 2008, 11:05 AM
-
By gerald.logor in forum Client SDKs
Replies: 5
Last Post: April 18th, 2008, 08:46 AM
-
By eduramires in forum Client SDKs
Replies: 3
Last Post: February 4th, 2008, 09:14 AM
-
By eduramires in forum General
Replies: 1
Last Post: January 29th, 2008, 05:03 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 07:39 AM.
Bookmarks