Pipe community into your browser with the Meetup Streaming API
Using bower
bower install must
This will unpack must.js into your bowers components directory.
This client provides a interface for both websocket and long-polling protocols. You supply a callback function to respond to the json, and any parameters you want to be included. For example, to alert with the member_id for every RSVP in the event "1234":
After loading you can start streaming meetup data
must.Rsvps(function(json) {
alert(json.member.member_id);
}, { event_id: 1234 });
must.Comments(function(json) {
alert(json.comment);
});
must.Photos(function(json){
alert(json.highres_link);
});
must.Checkins(function(json) {
alert(json.member.member_name);
}, {
event_id: 1234
});
If you ever wish to stop the cycle of callbacks, call stop()
on the object returned by a streams creation.
stream.stop();
To restart the stream, create a new one with the function above.
The Meetup stream api allows up to 10 concurrent connections from the same client IP.
This client requires jQuery 1.4 or higher.
An example is provided. Install its depdendencies with
bower install sassquatch jquery
Then open index.html in your browser
Meetup 2013