Skip to content

Url can't be changed for easy reconnect #5342

Description

@benaadams

Using a client-side cursor (e.g. lastId processed); for a reconnect this wants to be passed back to the server in the query string (as cors doesn't allow custom headers and cors is always applicable to websockets).

However while signalR.HubConnectionBuilder() provides easy construction of the connection; the url cannot be changed after building.

This means if the connection disconnects and you need to pass a cursor (e.g. id); the connection has to be rebuilt and all the events re-registered to the new connection.

It would be easier if the url could be updated and only .start needed to be called again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-fewThis issue impacts only small number of customersarea-signalrIncludes: SignalR clients and serversblockedThe work on this issue is blocked due to some dependencyenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-client-javaRelated to the SignalR Java clientfeature-client-javascriptRelated to the SignalR JS clientfeature-client-netRelated to the SignalR .NET clienthelp wantedUp for grabs. We would accept a PR to help resolve this issueseverity-minorThis label is used by an internal tool

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions