absinthe_graphql_ws
absinthe_graphql_ws copied to clipboard
Add optional_callback `handle_ping`
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_pingcallback in the socket implementation. - Updates the
Pongresponse to include the samepayloadthat was sent in thePing.
Hey @sax - what can we do to merge this? This seems useful.