Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2010
    Location
    Suzhou
    Posts
    1

    Red face newbie ask: Web client by pre-installed locally?

    Hi there,

    I am a newbie for LS and now planning and doing my first LS Web Client App according to a business scenario.

    Now we are requested to think of a fat web client deployment like following:
    1. all static html, images, LS javascripts will be pre-installed and initiated/run locally from client devices, probably mobile phones, in order to speed up the initialization process because of bandwidth limit.
    2. set up connection to LS server and only get updated data pushed from there.

    my question is:
    Is that possible for LS to make such deployment happened only by changing some settings of Web Client API, which brings most convenience for us,

    or we need to totally re-think of using other fat clients API like Java/.Net/Flash/Silverlight Client API for this requirement?

    many thx in advanced.

    CX

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    A Web Client for Lightstreamer is bound to obeying the domain policy restrictions imposed by the browsers.
    Hence, if your client loads the static content with a "localhost" or "file:" url, the pages won't be able to interoperate with the remote content coming from LS Server.

    On the other hand, if your client loads the page from a remote host but you could manage to prepare the browser cache in such a way that all requests were handled locally, then interoperation would be possible.
    By the way, you might achieve the same by accessing the pages in http from the local host and playing on the "hosts" file, but this would probably be unfeasible in your scenario.

    The other types of clients that you have mentioned don't have the same restrictions.
    Another option, also available in html, would be to bypass LS Web Client Library and exploit the "sdk for generic clients", by having your pages request the contents from LS Server via XMLHttpRequest; in that case, depending on the browser, you might not have a way of downloading pages in streaming and might have to use long polling.

 

 

Similar Threads

  1. Newbie to setup multihosting
    By jhang0315 in forum General
    Replies: 3
    Last Post: May 30th, 2012, 09:44 AM
  2. For LightStreamer newbie
    By karthik in forum Client APIs
    Replies: 2
    Last Post: August 24th, 2010, 07:11 AM
  3. Pull data from txt file to lighstreamer (NEWBIE)
    By forexinvestor in forum Adapter Protocol
    Replies: 1
    Last Post: December 23rd, 2008, 08:55 AM
  4. Newbie
    By pisak in forum Client APIs
    Replies: 1
    Last Post: January 23rd, 2008, 03:10 PM
  5. LightStreamer and Sockets - newbie question
    By jsharpe in forum Adapter APIs
    Replies: 3
    Last Post: September 28th, 2006, 02:03 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 12:36 PM.