Skip to content

[SignalR] Add an option to enable client side ping check instead of only relying on client side PingMessage #23794

Open
@vicancy

Description

@vicancy

Is your feature request related to a problem? Please describe.

The issue is SignalR server-side relies on the first PingMessage to enable the client-side ping check.

However, if the client-side sends out messages constantly and more frequently than keep alive, the client never has any chance to send out PingMessage, and as a result the server-side ping check never invokes.

this.resetKeepAliveInterval();

And this can cause the issue that when using SSE to connect to the service, although client fails to send to the server when JWT token expiration(401), the connection never closes, like described here Azure/azure-signalr#943

Describe the solution you'd like

Provide an option to explicitly enable the ping check through SignalROptions can solve the issue.

Metadata

Metadata

Assignees

Labels

affected-fewThis issue impacts only small number of customersarea-signalrIncludes: SignalR clients and serversenhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-minorThis label is used by an internal tool

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions