-
April 29th, 2015, 05:51 AM
#1
Basic Chat Messenger Demo - not working over Internet
hi
I am new to LightStreamer and is trying out / exploring this demo : Basic Messenger Demo at : https://github.com/Weswit/Lightstrea...ent-javascript
I have followed all the installation instructions and managed to get it up and running, locally (i.e. localhost://MessengerDemo), as I have re-configured the port to listen on port 80.
In other words, it works perfectly in localhost (websocket connected successfully - connected over HTTP in streaming mode).
However, when I access it over the Internet, say for e.g.:
http:<my domain .com / IP Address>/MessengerDemo, the first page showed up, upon entering my nickname and lick Login, the connection was not successful, it keeps saying Connecting .. Disconnected and will try again.
I have changed the port to 80 in js/lsClient.js i.e. var lsClient = new LightstreamerClient(protocolToUse+"//localhost:"+portToUse,"MESSENGER");
Is there any other settings that I would need to set up / configure in order for this to run ? port 80 is configured and js/lsClient.js is also set. Pls advice.
Thank you very much.
-
April 30th, 2015, 08:51 AM
#2
Hi centrineon,
I suppose that the problem happens because you left "localhost" as address of the Lightstreamer server. In your case it should work something like this:
As an alternative, setting Lightstreamer Server address is not required when the front-end pages are supplied by Lightstreamer Server itself (although this scenario is advised only for demo purpose):
Please check out here further details.
HTH,
Giuseppe
Similar Threads
-
By phamminh05 in forum Client SDKs
Replies: 7
Last Post: August 13th, 2019, 05:25 PM
-
By lisicnu in forum Adapter SDKs
Replies: 3
Last Post: December 8th, 2011, 02:41 AM
-
By jeane@jse.co.za in forum Adapter SDKs
Replies: 3
Last Post: February 23rd, 2011, 09:22 AM
-
By athanasius2 in forum General
Replies: 3
Last Post: April 17th, 2009, 12:40 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 05:27 PM.
Bookmarks