absinthe_graphql_ws icon indicating copy to clipboard operation
absinthe_graphql_ws copied to clipboard

Add optional_callback `handle_ping`

Open bnhansn opened this issue 3 years ago • 1 comments

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.

bnhansn avatar Sep 12 '22 23:09 bnhansn

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

aloukissas avatar Feb 14 '24 00:02 aloukissas