← Back to team overview

mqtt-users team mailing list archive

Re: MQTT-HTTP bridging

 

On 12 Jun 2012, at 14:59, Toby Jaffey <toby@xxxxxxxxxxxx> wrote:

> On Tue, Jun 12, 2012 at 02:27:04PM +0100, andypiperuk@xxxxxxxxx wrote:
>> On the topic of streaming and HTTP etc I'll also throw
>> http://knolleary.net/2012/04/04/streaming-tweets-to-mqtt/ into the
>> discussion.
> 
> Thanks Andy, that's very interesting. I looked at Twitter's streaming API, but
> afaict it's only useful for non-browser apps.
> 
> They talk about using a single HTTP request and getting back an infinitely long
> document (with some delimeters).
> 
> https://dev.twitter.com/discussions/3022
> "You need to use raw sockets to consume the streaming API."
> 
> But, without websockets I don't think this is possible with XmlHttpRequest().
> eg. http://stackoverflow.com/questions/3312616/utilizing-twitters-streaming-

For what it is worth I have a twitter to mqtt bridge running on test.mosquitto.org, that uses the streaming API.

If you would like any accounts or keywords added, let me know. Source code is here:

https://github.com/njh/twitter-stream-to-mqtt


nick.

References