You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-web-pubsub/tutorial-pub-sub-messages.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: lianwei
6
6
ms.service: azure-web-pubsub
7
7
ms.custom: devx-track-azurecli
8
8
ms.topic: tutorial
9
-
ms.date: 07/24/2024
9
+
ms.date: 09/03/2024
10
10
---
11
11
12
12
# 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
69
69
70
70
### Create a Web PubSub instance
71
71
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`:
73
73
74
74
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.
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:
81
81
82
82
***name**: The Web PubSub name you provided in the `--name` parameter above.
83
83
***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
472
472
473
473
The `service.sendToAll()` call simply sends a message to all connected clients in a hub.
474
474
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`.
0 commit comments