Skip to content

Commit

Permalink
Update readme for multi pubsub (#437)
Browse files Browse the repository at this point in the history
* update readme for multi pubsub

* move paragraph up

* typo

Co-authored-by: LM <lemai>
  • Loading branch information
LMWF authored Aug 17, 2020
1 parent edaae6e commit e7c9a64
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,20 +277,19 @@ $ dapr run --app-id nodeapp --app-port 3000 node app.js

Publish a message:

```
$ dapr publish --topic myevent
```
The `--pubsub` parameter takes in the name of the pub/sub. The default name of the pub/sub configed by the CLI is "pubsub".


Publish a message:

* Linux/Mac
```bash
$ dapr publish --topic myevent --data '{ "name": "yoda" }'
$ dapr publish --pubsub pubsub --topic myevent --data '{ "name": "yoda" }'
```

* Windows
```bash
C:> dapr publish --topic myevent --data "{ \"name\": \"yoda\" }"
C:> dapr publish --pubsub pubsub --topic myevent --data "{ \"name\": \"yoda\" }"
```

### Invoking
Expand Down

0 comments on commit e7c9a64

Please sign in to comment.