Results 1 to 2 of 2
  1. #1

    Unhappy 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.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    537
    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

  1. dotnet demo Portfolio-Basic not work fine
    By lisicnu in forum Adapter APIs
    Replies: 3
    Last Post: December 8th, 2011, 02:41 AM
  2. .net version for messenger
    By jeane@jse.co.za in forum Adapter APIs
    Replies: 3
    Last Post: February 23rd, 2011, 09:22 AM
  3. Chat Demo in Flash???
    By phamminh05 in forum Client APIs
    Replies: 5
    Last Post: March 24th, 2010, 08:52 AM
  4. Demo not working within my framework...
    By athanasius2 in forum General
    Replies: 3
    Last Post: April 17th, 2009, 12:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 05:21 AM.