Permalink
Browse files

updated readme, usersConnected callback wants to put error message in…

… first parameter
  • Loading branch information...
1 parent 97f25d7 commit 22fa348968bb5b3f38e931d2aeec605668bedd43 @ImDom ImDom committed Feb 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -55,7 +55,7 @@ API Examples
var beaconpush = new bp.Client('<your-api-key>', '<your-secret-key>');
// Get number of users currently connected to your site
- beaconpush.usersConnected(function (numConnected) {
+ beaconpush.usersConnected(function (err, numConnected) {
console.log('There are ' + numConnected + ' users online');
});

0 comments on commit 22fa348

Please sign in to comment.