File tree 1 file changed +2
-2
lines changed
quickstarts/pubsub-helloworld
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,15 @@ This deploys and activate the PubSub hello World Functions.
63
63
Once deployed, to try the sample use the ` gcloud ` CLI to publish a message to the ` topic-name ` topic:
64
64
65
65
```
66
- gcloud alpha pubsub topics publish topic-name 'YourName'
66
+ gcloud alpha pubsub topics publish topic-name --message= 'YourName'
67
67
```
68
68
69
69
Open the Functions logs in the Firebase Console, you should see a messages that reads "Hello YourName".
70
70
71
71
Then you can also publish a message to the ` another-topic-name ` topic using JSON data:
72
72
73
73
```
74
- gcloud alpha pubsub topics publish another-topic-name '{"name":"YourName"}'
74
+ gcloud alpha pubsub topics publish another-topic-name --message= '{"name":"YourName"}'
75
75
```
76
76
77
77
Open the Functions logs in the Firebase Console, you should see a messages that reads "Hello YourName".
You can’t perform that action at this time.
0 commit comments