3 ms·
It looks like your browser connects to the Twitter API.
by sp332 14y ago
It looks like your browser connects to the Twitter API.
- xSwag 14y agoCorrect me if I'm wrong but wouldn't Same origin policy block that? Edit: looking through the javascript, it seems that it pretty much just refreshes the page on a interval and the server gets the data from twitter
- danzajdband 14y agoI'm using a library I made in node.js (https://github.com/danzajdband/Tuiter https://github.com/danzajdband/Tuiter) to retrieve the tweets server-side via the Twitter Streaming API (https://dev.twitter.com/docs/streaming-apis https://dev.twitter.com/docs/streaming-apis). Then I send the "Twitter client" to the client using Socket.IO. I'm refreshing the chart, not the entire site, every 500 ms = 1/2 seconds to update the chart. I'm updating every 500ms and not every time I receive a tweet because of performance issues. Thanks for the feedback.
- prezjordan 14y agoVery cool, I was unaware of the streaming API. Nice work!