Skip to content

Commit 425767c

Browse files
Merge pull request #270889 from JialinXin/patch-3
Update signalr-concept-client-negotiation.md
2 parents 479e40b + 4824a08 commit 425767c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/azure-signalr/signalr-concept-client-negotiation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: JialinXin
55
ms.author: jixin
66
ms.service: signalr
77
ms.topic: conceptual
8-
ms.date: 12/08/2023
8+
ms.date: 04/02/2024
99
---
1010

1111
# Client negotiation
@@ -20,8 +20,9 @@ The response to the `POST [endpoint-base]/negotiate` request contains one of thr
2020

2121
```json
2222
{
23+
"connectionToken":"05265228-1e2c-46c5-82a1-6a5bcc3f0143",
2324
"connectionId":"807809a5-31bf-470d-9e23-afaee35d8a0d",
24-
"negotiateVersion":0,
25+
"negotiateVersion":1,
2526
"availableTransports":[
2627
{
2728
"transport": "WebSockets",
@@ -42,12 +43,11 @@ The response to the `POST [endpoint-base]/negotiate` request contains one of thr
4243
The payload that this endpoint returns provides the following data:
4344

4445
* The `connectionId` value is required by the `LongPolling` and `ServerSentEvents` transports to correlate sending and receiving.
45-
* The `negotiateVersion` value is the negotiation protocol version that you use between the server and the client.
46+
* The `negotiateVersion` value is the negotiation protocol version that you use between the server and the client, see [Transport Protocols](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md).
47+
* `negotiateVersion: 0` only returns `connectionId`, and client should use the value of `connectionId` as `id` in connect requests.
48+
* `negotiateVersion: 1` returns `connectionId` and `connectionToken`, and client should use the value of `connectionToken` as `id` in connect requests.
4649
* The `availableTransports` list describes the transports that the server supports. For each transport, the payload lists the name of the transport (`transport`) and a list of transfer formats that the transport supports (`transferFormats`).
4750

48-
> [!NOTE]
49-
> Azure SignalR Service supports only `Version 0` for the negotiation protocol. A client that has a `negotiateVersion` value greater than zero will get a response with `negotiateVersion=0` by design. For protocol details, see [Transport Protocols](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md).
50-
5151
* A redirect response that tells the client which URL and (optionally) access token to use as a result:
5252

5353
```json

0 commit comments

Comments
 (0)