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/howto-develop-reliable-clients.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
-
title: Create reliable Websocket clients
3
-
description: How to create reliable Websocket clients
2
+
title: Create reliable WebSocket clients
3
+
description: How to create reliable WebSocket clients
4
4
author: chenyl
5
5
ms.author: chenyl
6
6
ms.service: azure-web-pubsub
7
7
ms.topic: reference
8
8
ms.date: 01/12/2023
9
9
---
10
10
11
-
# Create reliable Websocket with subprotocol
11
+
# Create reliable WebSocket with subprotocol
12
12
13
-
When Websocket client connections drop due to intermittent network issues, messages can be lost. In a pub/sub system, publishers are decoupled from subscribers, so publishers may not detect a subscribers' dropped connection or message loss. It's crucial for clients to overcome intermittent network issues and maintain reliable message delivery. To achieve that, you can create a reliable Websocket client with the help of reliable Azure Web PubSub subprotocols.
13
+
When WebSocket client connections drop due to intermittent network issues, messages can be lost. In a pub/sub system, publishers are decoupled from subscribers, so publishers may not detect a subscribers' dropped connection or message loss. It's crucial for clients to overcome intermittent network issues and maintain reliable message delivery. To achieve that, you can create a reliable WebSocket client with the help of reliable Azure Web PubSub subprotocols.
14
14
15
15
## Reliable Protocol
16
16
@@ -26,7 +26,7 @@ The following tutorial walks you through the important part of implementing the
26
26
27
27
### Initialization
28
28
29
-
To use reliable subprotocols, you must set the subprotocol when constructing Websocket connections. In JavaScript, you can use the following code:
29
+
To use reliable subprotocols, you must set the subprotocol when constructing WebSocket connections. In JavaScript, you can use the following code:
30
30
31
31
- Use Json reliable subprotocol:
32
32
@@ -50,7 +50,7 @@ To use reliable subprotocols, you must set the subprotocol when constructing Web
50
50
51
51
Connection recovery is the basis of achieving reliability and must be implemented when using the `json.reliable.webpubsub.azure.v1` and `protobuf.reliable.webpubsub.azure.v1` protocols.
52
52
53
-
Websocket connections rely on TCP. When the connection doesn't drop, messages are lossless and delivered in order. To prevent message loss over dropped connections, the Web PubSub service retains the connection status information, including group and message information. This information is used to restore the client on connection recovery
53
+
WebSocket connections rely on TCP. When the connection doesn't drop, messages are lossless and delivered in order. To prevent message loss over dropped connections, the Web PubSub service retains the connection status information, including group and message information. This information is used to restore the client on connection recovery
54
54
55
55
When the client reconnects to the service using reliable subprotocols, the client will receive a `Connected` message containing the `connectionId` and `reconnectionToken`. The `connectionId` identifies the session of the connection in the service.
0 commit comments