This long-polling stream can be easily consumed using JavaScript in any modern browser. RSVP notifications are received when they happen, or as soon as your script finishes handling its last notification.
These parameters are set automatically by Meetup's must.js client.
RSVP upload notification objects include these properties. This method's response is an array of zero or more of these, while Meetup's JS client calls your callback function with exactly one object.
Install the Meetup stream client with bower
$ bower install must
The HTML page draws a table of RSVPs as they are received.
<html>
<head>
<script src="components/jquery/jquery.min.js"></script>
<script src="components/must/must.js"></script>
<script>
must.Rsvps(function(rsvp) {
$('#rsvps').prepend(
'<tr><td>' + rsvp.member.member_name +
'</td><td>' + rsvp.group.group_name +
'</td><td>' + (rsvp.event.time ? new Date(rsvp.event.time) : '') +
'</td><td>' + rsvp.group.group_city + ', ' + rsvp.group.group_country +
'</td></tr>'
);
});
</script>
</head>
<body>
<table><thead>
<tr><th>Who</th><th>What</th><th>When</th><th>Where</th></tr>
</thead><tbody id="rsvps">
</tbody></table>
</body>
</html>
See map in our stream github project for a more advanced example.
For browsers that support it, WebSockets is a more efficient alternative to the long-polling stream. This is a push only endpoint and will discard any messages received from the client after the socket is open.
Because browser support for WebSockets is limited, we recommend that you consume this stream through the must.js client, which can fallback to long-polling.
The full URL for this method is ws://stream.meetup.com/2/rsvps
This stream includes the same JSON notification objects as its long-polling counterpart, one per WebSocket frame.
The long-polling stream examples will automatically use WebSockets, if available.
Live HTTP stream of RSVPs within public Meetup groups. This method uses chunked transfer encoding to maintain a persistent connection with the client. This connection will only be terminated for server maintenance or a connection error.
This method does not require authentication, or any parameters. Applications should only need a single connection to the stream, and at most 10 connections are allowed per client IP address.
This stream includes the same JSON notification objects as its long-polling counterpart. These are served one per HTTP chunk and terminated by newlines.
Try out the RSVP stream on a command line:
curl -i http://stream.meetup.com/2/rsvps
If your system doesn't have curl, you can also use wget:
wget -qO- http://stream.meetup.com/2/rsvps
An application using the stream should keep track of the last RSVP mtime it has received, so that when disconnected it may resume where it left off:
curl -i http://stream.meetup.com/2/rsvps?since_mtime=1294435118533
The number of past rsvps the stream will return is limited. Applications that intend to consume all RSVP activity should reconnect within a few seconds to avoid missing RSVP messages.
Meetup members, Log in
By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy
everywhere comments