Results 1 to 4 of 4

Thread: php client

  1. #1
    Member
    Join Date
    May 2010
    Location
    rome
    Posts
    3

    php client

    hi

    i'd like to build a php client that reads data received from lightstreamer JS and put it into the browser, or forward it to something else (xml, db..)

    is that possible ? there's any tutorial on that ?

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    hi,

    if you want real time data on the browser, you may want such data not to pass through php, so you may want to use php to create your html and then use the javascript library to fetch the real-time data.

    Btw you can certainly write a php client exploiting our text protocol tutorial. You can find it under LS_HOME/DOCS-SDKs/sdk_client_generic
    Note that for the server to support the text protocol you have to use Lightstreamer Presto or Vivace (see http://www.lightstreamer.com/products.htm and http://www.lightstreamer.com/downloadretail.htm ).

  3. #3
    Member
    Join Date
    May 2010
    Location
    rome
    Posts
    3
    Quote Originally Posted by Mone
    hi,

    if you want real time data on the browser, you may want such data not to pass through php, so you may want to use php to create your html and then use the javascript library to fetch the real-time data.

    Btw you can certainly write a php client exploiting our text protocol tutorial. You can find it under LS_HOME/DOCS-SDKs/sdk_client_generic
    Note that for the server to support the text protocol you have to use Lightstreamer Presto or Vivace (see http://www.lightstreamer.com/products.htm and http://www.lightstreamer.com/downloadretail.htm ).
    i'd like to pass the real time data received through the JS into xml or into a db or into xml response

    is this feasible through the lighstreamer client ?
    i mean, there's an api function in the LS javascript that let me pass the data it's just received to something else ?
    the problme i'm facing is that i've to trigger an action after data's receiving

    my best regards

    p.s.
    thanks for such a quick reply

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    i mean, there's an api function in the LS javascript that let me pass the data it's just received to something else ?
    all of our client libraries have some sort of events that are triggered when data is received (e.g.: with the javascript client has the NonVisualTable's callbacks, whjile with java you have the listener HandyTableListener). You have to implement the handling of such data to do your xml/db writing.
    Obviously if you implement the protocol instead of using one of our client libraries you'll be able to trigger whatever you want upon reception of an update.

 

 

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:21 PM.