nats.net icon indicating copy to clipboard operation
nats.net copied to clipboard

Add Reconnect API

Open ColinSullivan1 opened this issue 3 years ago • 2 comments

Add an API to trigger a reconnect.

Just Reconnect: IConnection.Reconnect();

Reconnect and Replace URLs: IConnection.Reconnect(string newUrls); IConnection.Reconnect(string []urls);

ColinSullivan1 avatar Mar 04 '21 20:03 ColinSullivan1

Is this intended to be synchronous or asynchronous? I'd suggest including ReconnectAsync as well.

watfordgnf avatar Mar 04 '21 20:03 watfordgnf

Good idea, could provide Task<IConnection> IConnection.ReconnectAsync(); and overloads...

ColinSullivan1 avatar Mar 04 '21 20:03 ColinSullivan1