Skip to content

Commit 7161406

Browse files
Verified the article, reviewed the content, and fixed all minor editorial issues. Updated ms.date w.r.t freshness pass.
1 parent c15c1a4 commit 7161406

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-web-pubsub/tutorial-pub-sub-messages.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: lianwei
66
ms.service: azure-web-pubsub
77
ms.custom: devx-track-azurecli
88
ms.topic: tutorial
9-
ms.date: 07/24/2024
9+
ms.date: 09/03/2024
1010
---
1111

1212
# Tutorial: Publish and subscribe messages using WebSocket API and Azure Web PubSub service SDK
@@ -69,15 +69,15 @@ If you're creating the project on a local machine, you need to install the depen
6969

7070
### Create a Web PubSub instance
7171

72-
To create a Web PubSub in the resource group you created, use the Azure CLI [az webpubsub create](/cli/azure/webpubsub#az-webpubsub-create) command. The following command creates a _Free_ Web PubSub resource under resource group `myResourceGroup` in `EastUS`:
72+
To create a Web PubSub instance in the resource group you created, use the Azure CLI [az webpubsub create](/cli/azure/webpubsub#az-webpubsub-create) command. The following command creates a _Free_ Web PubSub resource under resource group `myResourceGroup` in `EastUS`:
7373

7474
Each Web PubSub resource must have a unique name. Replace <your-unique-resource-name> with the name of your Web PubSub instance in the following command.
7575

7676
```azurecli
7777
az webpubsub create --resource-group myResourceGroup --name <your-unique-resource-name> --location EastUS --sku Free_F1
7878
```
7979

80-
The output of this command shows properties of the newly created resource. Take note of the following two properties:
80+
The output of this command shows properties of the newly created resource. Take note of the following roperties:
8181

8282
* **name**: The Web PubSub name you provided in the `--name` parameter above.
8383
* **hostName**: In the example, the host name is `<your-unique-resource-name>.webpubsub.azure.com/`.
@@ -472,7 +472,7 @@ Create a publisher using the Azure Web PubSub SDK to publish a message to the co
472472
473473
The `service.sendToAll()` call simply sends a message to all connected clients in a hub.
474474
475-
1. To send a message, run the following command replacing `<Web-PubSub-connection-string>` with the connection string you copied earlier. If you're using Windows command shell, you can use `set` instead of `export`.
475+
1. To send a message, run the following command replacing `<Web-PubSub-connection-string>` with the connection string you copied earlier. If you're using the Windows command shell, you can use `set` instead of `export`.
476476
477477
```bash
478478
export WebPubSubConnectionString=<Web-PubSub-connection-string>

0 commit comments

Comments
 (0)