Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support keep-alive pings in WebSocketGraphQlClient #608

Closed
wants to merge 2 commits into from

Conversation

toby200
Copy link
Contributor

@toby200 toby200 commented Feb 8, 2023

Added a keepalive option to the WebSocketGraphQlClient builder. This gets passed down to the WebSocketGraphQlTransport which then sends graphql ping messages over the websocket every keepalive seconds.

I've added basic handling to accept the pong messages back, but no processing or checks that a pong response is received in a timely manner, similar to the graphql-ws client library.

@rstoyanchev rstoyanchev self-assigned this Feb 9, 2023
@rstoyanchev rstoyanchev added the type: enhancement A general enhancement label Feb 9, 2023
@rstoyanchev rstoyanchev linked an issue Feb 9, 2023 that may be closed by this pull request
@rstoyanchev
Copy link
Contributor

We have a similar requirement for server-side pings in #534.

@bhowmikdebarshi
Copy link

+1 for this feature. Client should be able to send a ping message to server to keep the channel open.

@rstoyanchev rstoyanchev removed the status: waiting-for-triage An issue we've not yet triaged label Nov 8, 2023
@rstoyanchev rstoyanchev added this to the 1.3 Backlog milestone Nov 8, 2023
@rstoyanchev rstoyanchev modified the milestones: 1.3 Backlog, 1.3.0-RC1 Apr 11, 2024
@rstoyanchev rstoyanchev changed the title #605 Support for client to send ping messages for subscriptions Support keep-alive pings in WebSocketGraphQlClient Apr 11, 2024
rstoyanchev pushed a commit that referenced this pull request Apr 11, 2024
rstoyanchev added a commit that referenced this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for client to send ping messages for subscriptions
4 participants