aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 34ecf10..3d0f89f 100644
--- a/README.md
+++ b/README.md
@@ -14,8 +14,8 @@ const channels = require("./channels-lib");
clientFactory(function(err, client) {
if(err) throw err;
- channel.getMessages(client, "logbook", function(messageStream) {
- pull(messageStream, pull.drain(function(msg) {
+ channel.getMessages(client, "logbook", null, function(messageStream) {
+ pull(messageStream, pull.drain(function(msg, _) {
console.log(JSON.stringify(msg));
})
});