Skip to content

Commit 0cbeb1c

Browse files
authored
Updated PubSub Chat sample to create proper hub
I've changed the az cli command to create the proper hub aligned to the sample code otherwise the ngrock will never being fired!
1 parent 4c4e88b commit 0cbeb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-web-pubsub/tutorial-build-chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ Use the Azure CLI [az webpubsub hub create](/cli/azure/webpubsub/hub#az_webpubsu
607607
> Replace <domain-name> with the name ngrok printed.
608608
609609
```azurecli-interactive
610-
az webpubsub hub create -n "<your-unique-resource-name>" -g "myResourceGroup" --hub-name "chat" --event-handler url-template="https://<domain-name>.ngrok.io/eventHandler" user-event-pattern="*" system-event="connected"
610+
az webpubsub hub create -n "<your-unique-resource-name>" -g "myResourceGroup" --hub-name "SampleChatHub" --event-handler url-template="https://<domain-name>.ngrok.io/eventHandler" user-event-pattern="*" system-event="connected"
611611
```
612612
613613
After the update is completed, open the home page http://localhost:8080/index.html, input your user name, you’ll see the connected message printed in the server console.

0 commit comments

Comments
 (0)