-
May 5th, 2010, 10:41 AM
#1
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 ?
-
May 5th, 2010, 11:20 AM
#2
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 ).
-
May 5th, 2010, 12:21 PM
#3
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
-
May 5th, 2010, 01:48 PM
#4
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.
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 04:33 AM.
Bookmarks