Created
September 8, 2014 17:40
-
-
Save jbuck/2e527994f33040a0b2b6 to your computer and use it in GitHub Desktop.
API for processor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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