dotnet / dotnet/aspnetcore

SignalR Retry lost connection behavior change

Open
#45,810 3 comments 0 reactions 0 assignees View on GitHub
area-signalr
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I am trying to use the RetryPolicy to activate when an app starts but the server is not available. Currently the only time a retry is done is after a connection has been established and then gets disconnected.

### Describe the solution you'd like

It would be nice to have a property on the RetryPolicy to allow for use in the StartAsyncCore even when there has not been a connection established.

So if I have a AutoReconnect(RetryPolicy) in the hub builder, and the first attemp to connect to the server fails, We would like the Retry Policy to activate.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.