Skip to content

#strawberry-shake how can I reconnect websocket if somehow Server is Restarted and connection is lost Β #4184

Closed

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

#strawberry-shake how can I reconnect websocket if somehow Server is Restarted and connection is lost

There should be onConnect and OnDisconnet events callbacks.

Steps to reproduce

My Startup as per documentation

services.AddBkClient(profile: BkClient.BkClientProfileKind.Default).ConfigureHttpClient((sp , client) =>
{
var login = sp.GetService<Login>( );
_token = login.GetAccessToken( );
client.BaseAddress = new Uri(_appSettings.BkQueryUrl);
client.AddBearerToken(_token);
}).ConfigureWebSocketClient((sp , client) =>
{
client.Uri = new Uri(_appSettings.BkWsUrl);
});

Relevant log output

No response

Additional Context?

No response

Product

Strawberry Shake

Version

11.3.5

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions