Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Buddhike de Silva committed Apr 7, 2020
1 parent 297b034 commit a952a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ const express = require('express');
const app = express();
app.use(express.json());

// Messages are submitted to the root as
// HTTP POST requests
// Messages are submitted to the handler endpoint as HTTP POST requests
app.post('/', (req, res) => {
console.log(req.body);
res.send('ok');
Expand All @@ -64,6 +63,7 @@ app.listen(8312, () => { console.log('listening'); });
Now that we have a message handler, we can launch blaster to handle messages stored in a supported broker. For instance, to process messages in an AWS SQS queue called test with the script created in step 1, launch blaster with following command (this should be executed in the directory containing node script):

```
chmod +x ./handler.js
blaster sqs --queue-name "test" --region "ap-southeast-2" --handler-command ./handler.js
```

Expand Down

0 comments on commit a952a87

Please sign in to comment.