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-livetry.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,22 +16,20 @@ This guide walks you through two common messaging scenarios in LiveTry, while he
16
16
17
17
---
18
18
19
-
## What you'll learn
19
+
## What you learn
20
20
21
-
You'll explore two messaging patterns often used in real-time applications:
21
+
You explore two messaging patterns often used in real-time applications:
22
22
23
23
-**Server-to-group messaging**: Using the `sendToGroup` API to broadcast messages to all clients in a group.
24
-
-**Client-to-group messaging**: Azure Web PubSub supports a capability that allows a client in a group to send messages directly to other clients in the same group—**without routing through your app server** — reducing latency.
25
-
26
-
Each scenario is accompanied by a short tutorial video to help you follow along.
24
+
-**Client-to-group messaging**: Azure Web PubSub supports a capability that allows a client in a group to send messages directly to other clients in the same group—**without routing through your app server**—reducing latency.
27
25
28
26
---
29
27
30
28
## Key concepts
31
29
32
-
Before getting started, here’s a quick refresher on core Azure Web PubSub concepts that you’ll interact with in LiveTry:
30
+
Before getting started, here’s a quick refresher on core Azure Web PubSub concepts that you interact with in LiveTry:
33
31
34
-
-**Hub**: A logical unit used to isolate and organize messaging logic. Clients always connects to a hub. With LiveTry, real traffic goes through the resource. For this tutorial, we recommend specifying a test hub name that doesn’t overlap with your production traffic.
32
+
-**Hub**: A logical unit used to isolate and organize messaging logic. Clients always connect to a hub. With LiveTry, real traffic goes through the resource. For this tutorial, we recommend specifying a test hub name that doesn’t overlap with your production traffic.
35
33
-**Connection**: A persistent WebSocket connection between a client and the Azure Web PubSub service.
36
34
-**Group**: A server-managed subset of connections. Messages sent to a group are delivered only to the connections within that group.
37
35
-**Messages**: The payloads exchanged between clients and the service. Messages can be broadcast to all, targeted to groups, or directed to individual connections.
@@ -40,7 +38,7 @@ Before getting started, here’s a quick refresher on core Azure Web PubSub conc
40
38
41
39
## Scenario 1: Send a message to a group from the server
42
40
43
-
In this scenario, you’ll simulate server-side broadcasting using the `sendToGroup` REST API. This demonstrates how the service routes a message from your backend to all clients in a specified group.
41
+
In this scenario, you simulate server-side broadcasting using the `sendToGroup` REST API. This demonstrates how the service routes a message from your backend to all clients in a specified group.
44
42
45
43
### Steps
46
44
1. In the Azure portal, navigate to your Azure Web PubSub resource.
@@ -54,7 +52,7 @@ In this scenario, you’ll simulate server-side broadcasting using the `sendToGr
54
52
### What you’re learning
55
53
You send messages to a group of clients using RESTful APIs. LiveTry demonstrates how server-to-group communication works without needing to deploy a backend. Azure Web PubSub also provides server SDKs for C#, JavaScript, Java, and Python.
56
54
57
-
Try repeating the steps with multiple clients to visualize message broadcasting in action. LiveTry supports up to 5 concurrent simulated clients.
55
+
Try repeating the steps with multiple clients to visualize message broadcasting in action. LiveTry supports up to five concurrent simulated clients.
58
56
59
57
---
60
58
@@ -76,7 +74,7 @@ This scenario showcases **client-to-group messaging**, which is ideal in applica
76
74
## Tips for using LiveTry
77
75
78
76
- Open multiple browser tabs to simulate multiple users or devices.
79
-
- Try combining additional operations like `joinGroup`, `leaveGroup`, or `sendToConnection`.
77
+
- Try combining more operations like `joinGroup`, `leaveGroup`, or `sendToConnection`.
80
78
- Use clear group names to better organize your experiments.
0 commit comments