do you have an example?

21 views
Skip to first unread message

eliesxs

unread,
Oct 27, 2011, 6:35:16 AM10/27/11
to teleportd-dev
Hello Stan,

Sorry my english.

I'm interested in your API, but, do you have an example on how i've to
handle your &stream=yes in javascript?

Do i need to install node.js server or similar?

Thank you,

Elies Xandri i Solé
www.instashirt.me
www.trespercinc.com

Stanislas Polu

unread,
Oct 27, 2011, 6:52:28 AM10/27/11
to telepo...@googlegroups.com
Hi Elies!

A Streaming mechanism as proposed by our current API is not really well suited for a client side javascript use.

Still, there are solutions out there (our API is very close to Twitter Streaming API):

Nevertheless, this is a perfectly valid request. 
So I'll try to find some cycles to add a "last" parameter that would:
- return you all the results since "last" if any
- make you wait otherwise

That would allow you to implement a long-polling mechanism (much more mainstream for client javascript)

Cheers,

-stan

--
Stanislas Polu 
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime Photo Search
Reply all
Reply to author
Forward
0 new messages