-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
17 persistent messages #19
Conversation
@@ -26,7 +25,8 @@ var hermes = require('runnable-hermes').hermesSingletonFactory({ | |||
port: '5672', | |||
username: 'guest', | |||
password: 'guest', | |||
hearbeat: 10, // default 0 (no timeout) | |||
hearbeat: 10, // default 0 (no timeout), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hearbeat
- I didn't know it heard beats
@@ -367,4 +357,4 @@ Hermes.prototype._subscribeCallback = function (cb) { | |||
} | |||
}); | |||
}; | |||
} | |||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this semicolon may be unnecessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linter required it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh - yup. weird. wonder how that passed before haha
'. Opts must include: '+ | ||
requiredOpts.join(', ')); | ||
} | ||
if (!exists(opts.persistent)) { opts.persistent = true; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use 101/defaults here. But I guess your one-liner is shorter
Addresses issue #17
Persistent example:
https://github.com/squaremo/amqp.node/blob/be31dd79a8d87475e70ca49ef0d6e247d30b46e4/examples/tutorials/callback_api/new_task.js#L20