Skip to content

Commit 5dced21

Browse files
Merge pull request #291061 from vwxyzh/patch-1
Add options in signalr-howto-use.md
2 parents 497c946 + 7eaedcd commit 5dced21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/azure-signalr/signalr-howto-use.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,14 @@ You can increase this value to avoid client disconnect.
154154
- This option defines a function to customize the transports that clients can use to send HTTP requests.
155155
- Use this options instead of [`HttpConnectionDispatcherOptions.Transports`](/aspnet/core/signalr/configuration?&tabs=dotnet#advanced-http-configuration-options) to configure transports.
156156

157+
#### `AllowStatefulReconnects`
158+
159+
- Default value is `null`
160+
- This option enables or disables stateful reconnects for all hubs.
161+
- If `null`, SDK will read [hub settings](/dotnet/api/microsoft.aspnetcore.http.connections.httpconnectiondispatcheroptions.allowstatefulreconnects).
162+
- If `true`, Azure SignalR Service will enable stateful reconnects in all of declared hubs. And clients need [enable stateful reconnects in client side](/aspnet/core/signalr/configuration).
163+
- If `false`, Azure SignalR Service will disable stateful reconnects in all of declared hubs.
164+
157165
### Sample
158166

159167
You can configure above options like the following sample code.

0 commit comments

Comments
 (0)