Skip to content

Commit 89789af

Browse files
committed
Fix typo
Websocket -> WebSocket
1 parent bda2d04 commit 89789af

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/azure-web-pubsub/howto-develop-reliable-clients.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
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
44
author: chenyl
55
ms.author: chenyl
66
ms.service: azure-web-pubsub
77
ms.topic: reference
88
ms.date: 01/12/2023
99
---
1010

11-
# Create reliable Websocket with subprotocol
11+
# Create reliable WebSocket with subprotocol
1212

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.
1414

1515
## Reliable Protocol
1616

@@ -26,7 +26,7 @@ The following tutorial walks you through the important part of implementing the
2626

2727
### Initialization
2828

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:
3030

3131
- Use Json reliable subprotocol:
3232

@@ -50,7 +50,7 @@ To use reliable subprotocols, you must set the subprotocol when constructing Web
5050

5151
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.
5252

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
5454

5555
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.
5656

@@ -71,7 +71,7 @@ wss://<service-endpoint>/client/hubs/<hub>?awps_connection_id=<connection_id>&aw
7171

7272
Connection recovery may fail if the network issue hasn't been recovered yet. The client should keep retrying to reconnect until:
7373

74-
1. The Websocket connection is closed with status code 1008. The status code means the connectionId has been removed from the service.
74+
1. The WebSocket connection is closed with status code 1008. The status code means the connectionId has been removed from the service.
7575
2. A recovery failure continues to occur for more than 1 minute.
7676

7777
### Publisher

0 commit comments

Comments
 (0)