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/quickstarts-event-notifications-from-clients.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ In this quickstart guide, we learn about the event system of Web PubSub so that
19
19
> * a client is `connected`
20
20
> * a client sends a `message`, which requires further processing
21
21
22
-
:::image type="content" source="media/quickstarts-push-messages-from-server/notification.gif" alt-text="GIF of application server receiving client events.":::
22
+
:::image type="content" source="media/quickstarts-event-notifications-from-clients/notification.gif" alt-text="GIF of application server receiving client events.":::
23
23
24
24
## Prerequisites
25
25
- A Web PubSub resource. If you haven't created one, you can follow the guidance: [Create a Web PubSub resource](./howto-develop-create-instance.md)
@@ -50,7 +50,7 @@ A client, be it a browser, a mobile app, or an IoT device, uses a **Client Acces
50
50
This URL follows a pattern of `wss://<service_name>.webpubsub.azure.com/client/hubs/<hub_name>?access_token=<token>`.
51
51
A client can have a few ways to obtain the Client Access URL. For this quick start, you can copy and paste one from Azure portal shown in the following diagram.
52
52
53
-

53
+

54
54
55
55
Create a file with name `client.js` and add the following code
56
56
@@ -129,7 +129,7 @@ As configured in the code above, when a client connects with your Web PubSub res
129
129
---
130
130
131
131
## Expose localhost
132
-
If your run the program on your computer, it's running on `localhost` at port `8080`. For our purposes, it means your local express app can't be reached on the internet. So, Web PubSub can't invoke the Webhook served at the path `/eventhandler`.
132
+
Run the program, it should be running on `localhost` at port `8080`. For our purposes, it means your local express app can't be reached on the internet. So, Web PubSub can't invoke the Webhook served at the path `/eventhandler`.
133
133
134
134
What we need is to expose localhost to be accessible on the internet. There are several tools available for this.
135
135
> [!div class="checklist"]
@@ -155,15 +155,15 @@ Now, we need to let your Web PubSub resource know about this Webhook URL. You ca
155
155
156
156
# [Azure portal](#tab/portal)
157
157
1. Select **"Settings"** from the menu and select **"Add"**
158
-
:::image type="content" source="media/howto-develop-eventhandler/configure-event-handler-menu.png" alt-text="Screenshot of Azure Web PubSub Configure Event Handler - menu.":::
158
+
:::image type="content" source="media/quickstarts-event-notifications-from-clients/configure-event-handler-menu.png" alt-text="Screenshot of Azure Web PubSub Configure Event Handler - menu.":::
159
159
160
160
1. Enter a hub name. For our purposes, enter "**myHub1**" and select "**Add**"
161
161
162
162
1. In the event handler page, configure the following fields
163
-
:::image type="content" source="media/quickstarts-push-messages-from-server/configure-event-handler-details.png" alt-text="Screenshot of Azure Web PubSub Configure Event Handler - details.":::
163
+
:::image type="content" source="media/quickstarts-event-notifications-from-clients/configure-event-handler-details.png" alt-text="Screenshot of Azure Web PubSub Configure Event Handler - details.":::
164
164
165
165
1. Save configuration
166
-
:::image type="content" source="media/quickstarts-push-messages-from-server/configure-event-handler-save.png" alt-text="Screenshot of Azure Web PubSub Configure Event Handler - save.":::
166
+
:::image type="content" source="media/quickstarts-event-notifications-from-clients/configure-event-handler-save.png" alt-text="Screenshot of Azure Web PubSub Configure Event Handler - save.":::
:::image type="content" source="media/quickstarts-push-messages-from-server/among-clients.gif" alt-text="GIF of pub/sub among clients without an application server.":::
14
+
:::image type="content" source="media/quickstarts-pubsub-among-clients/among-clients.gif" alt-text="GIF of pub/sub among clients without an application server.":::
0 commit comments