Skip to content

Instantly share code, notes, and snippets.

@jbuck
Created September 8, 2014 17:40
Show Gist options
  • Save jbuck/2e527994f33040a0b2b6 to your computer and use it in GitHub Desktop.
Save jbuck/2e527994f33040a0b2b6 to your computer and use it in GitHub Desktop.
API for processor
var processor = New SQSProcessor({
key: 'key',
secret: 'secret',
region: 'region',
url: 'http://example.com',
debug: false
});
// what would be the best way to handle errors here?
processor.startPolling(function(message, callback) {
// do something with the message
callback();
});
processor.stopPolling(function() {
// when you get called back, processing has stopped
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment