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 ?
Printable View
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 ?
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 responseQuote:
Originally Posted by Mone
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
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.Quote:
i mean, there's an api function in the LS javascript that let me pass the data it's just received to something else ?
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.