Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

withAutomaticReconnect #37

Closed
GeorgBreithaupt opened this issue May 19, 2021 · 2 comments
Closed

withAutomaticReconnect #37

GeorgBreithaupt opened this issue May 19, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@GeorgBreithaupt
Copy link

Would it be possible to activate "withAutoReconnect" when creating the connection? Or is there a special reason why this doesn't work?

Many Thanks!

export const createConnection = (
  url: string,
  options?: IHttpConnectionOptions | undefined
) => {
  if (!options) {
    return new HubConnectionBuilder().withUrl(url).build();
  }

  return new HubConnectionBuilder()
	.withUrl(url, options)
	.withAutomaticReconnect()
	.build();
};
@Odonno
Copy link
Owner

Odonno commented Oct 1, 2022

Hi @GeorgBreithaupt

If I remember correctly, this feature was not part of the first versions. Of course, since it is now part of the library, we can support this feature.

@Odonno Odonno added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 1, 2022
@Odonno
Copy link
Owner

Odonno commented Oct 1, 2022

v14.1.0 is now available with automatic reconnect feature. You can check the readme file to see how to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants