Skip to content

Conversation

@bnhansn
Copy link

@bnhansn bnhansn commented Sep 12, 2022

The graphql-ws spec mentions a Ping message may be useful for detecting failed connections or other types of network probing.

To allow an application to hook into this feature, this PR adds:

  • An optional handle_ping callback in the socket implementation.
  • Updates the Pong response to include the same payload that was sent in the Ping.

@aloukissas
Copy link

Hey @sax - what can we do to merge this? This seems useful.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants