-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Currently, there is no way to reset State when connecting. This is not ideal as it means we have to initialize a new HubConnection instance every time we connect and then bind to new handlers. This becomes prevalent when attempting initial connection retries in a loop.
I think default parameter here could be useful like:
public Task<HubConnection> ConnectAsync(bool resetState = false) {
if (resetState)
this.State = ConnectionStates.Initial;
...
tsoen