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
+7-20Lines changed: 7 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Use LiveTry to try out service capabilities
2
+
title: Use LiveTry to try out the capabilities of Azure Web PubSub
3
3
description: How to use LiveTry to explore service capabilities without setting up a code project
4
4
author: kevinguo-ed
5
5
ms.author: kevinguo
@@ -14,17 +14,13 @@ ms.date: 05/27/2025
14
14
15
15
This guide walks you through two common messaging scenarios in LiveTry, while helping you understand important concepts like **connections**, **groups**, and **messages**.
16
16
17
-
---
18
-
19
17
## What you learn
20
18
21
19
You explore two messaging patterns often used in real-time applications:
22
20
23
21
-**Server-to-group messaging**: Using the `sendToGroup` API to broadcast messages to all clients in a group.
24
22
-**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
23
26
-
---
27
-
28
24
## Key concepts
29
25
30
26
Before we get started, here’s a quick refresher on core Azure Web PubSub concepts that you interact with in LiveTry:
@@ -34,8 +30,6 @@ Before we get started, here’s a quick refresher on core Azure Web PubSub conce
34
30
-**Group**: A server-managed subset of connections. Messages sent to a group are delivered only to the connections within that group.
35
31
-**Messages**: The payloads exchanged between clients and the service. Messages can be broadcast to all, targeted to groups, or directed to individual connections.
36
32
37
-
---
38
-
39
33
## Scenario 1: Send a message to a group from the server
40
34
41
35
In this scenario, you simulate server-side broadcasting using the `sendToGroup` REST API. This scenario demonstrates how the service routes a message from your backend to all clients in a specified group.
@@ -52,9 +46,7 @@ In this scenario, you simulate server-side broadcasting using the `sendToGroup`
52
46
### What you’re learning
53
47
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.
54
48
55
-
To visualize message broadcasting in action, try repeating the steps with multiple clients . LiveTry supports up to five concurrent simulated clients.
56
-
57
-
---
49
+
To visualize message broadcasting in action, try repeating the steps with multiple clients. LiveTry supports up to five concurrent simulated clients.
58
50
59
51
## Scenario 2: Send a message to a group from a client
60
52
@@ -69,18 +61,13 @@ In this scenario, you create a client sending a message to other clients in the
69
61
### What you’re learning
70
62
This scenario showcases **client-to-group messaging**, which is ideal in applications where server round-trips introduce unnecessary latency. It's a core part of Web PubSub’s **client publish/subscribe model**.
71
63
72
-
---
73
-
74
-
## Tips for using LiveTry
75
-
76
-
- Open multiple browser tabs to simulate multiple users or devices.
77
-
- Try combining more operations like `joinGroup`, `leaveGroup`, or `sendToConnection`.
78
-
- Use clear group names to better organize your experiments.
79
-
80
-
---
64
+
> [!TIP]
65
+
> Open multiple browser tabs to simulate multiple users or devices.
66
+
> Try combining more operations like `joinGroup`, `leaveGroup`, or `sendToConnection`.
67
+
> Use clear group names to better organize your experiments.
81
68
82
69
## Next steps
83
70
84
71
- Learn more about [key concepts](./key-concepts.md) in Azure Web PubSub
85
72
- To build a local sample, follow the [Quickstart guide](./quickstarts-pubsub-among-clients.md)
86
-
- Explore guides under "How-to guides" for common tasks when developing with Azure Web PubSub
73
+
- Explore guides under "How-to guides" for common tasks when developing with Azure Web PubSub
0 commit comments