From e7c9a643dfefbcfff0c2c26c12029259e6e81180 Mon Sep 17 00:00:00 2001 From: Leon Mai Date: Mon, 17 Aug 2020 14:42:24 -0700 Subject: [PATCH] Update readme for multi pubsub (#437) * update readme for multi pubsub * move paragraph up * typo Co-authored-by: LM --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 84b676ef1..87ca8d9b7 100644 --- a/README.md +++ b/README.md @@ -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