Skip to content

Commit 19d9b32

Browse files
authored
Merge pull request #184419 from vicancy/patch-9
Update tutorial-build-chat.md
2 parents 27e9196 + 54d23b9 commit 19d9b32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ In the above code, we simply print a message to console when a client is connect
596596
597597
### Expose localhost
598598
599-
Then we need to set the Webhook URL in the service so it can know where to call when there is a new event. But there is a problem that our server is running on localhost so does not have an internet accessible endpoint. Here we use [ngrok](https://ngrok.com/) to expose our localhost to internet.
599+
Then we need to set the Webhook URL in the service so it can know where to call when there is a new event. But there is a problem that our server is running on localhost so does not have an internet accessible endpoint. There are several tools available on the internet to expose localhost to the internet, for example, [ngrok](https://ngrok.com), [loophole](https://loophole.cloud/docs/), or [TunnelRelay](https://github.com/OfficeDev/microsoft-teams-tunnelrelay). Here we use [ngrok](https://ngrok.com/).
600600
601601
1. First download ngrok from https://ngrok.com/download, extract the executable to your local folder or your system bin folder.
602602
2. Start ngrok
@@ -605,11 +605,11 @@ Then we need to set the Webhook URL in the service so it can know where to call
605605
ngrok http 8080
606606
```
607607
608-
ngrok will print a URL (`https://<domain-name>.ngrok.io`) that can be accessed from internet.
608+
ngrok will print a URL (`https://<domain-name>.ngrok.io`) that can be accessed from internet. In above step we listens the `/eventhandler` path, so next we'd like the service to send events to `https://<domain-name>.ngrok.io/eventhandler`.
609609
610610
### Set event handler
611611
612-
Then we update the service event handler and set the Webhook URL.
612+
Then we update the service event handler and set the Webhook URL to `https://<domain-name>.ngrok.io/eventhandler`. Event handlers can be set from either the portal or the CLI as [described in this article](howto-develop-eventhandler.md#configure-event-handler), here we set it through CLI.
613613
614614
Use the Azure CLI [az webpubsub hub create](/cli/azure/webpubsub/hub#az_webpubsub_hub_update) command to create the event handler settings for the chat hub
615615

0 commit comments

Comments
 (0)