hasura / go-graphql-client

Package graphql provides a GraphQL client implementation.
MIT License
405 stars 94 forks source link

feat: subscription client provide connection alive callback #77

Closed sermojohn closed 1 year ago

sermojohn commented 1 year ago

This PR enables optionally provided an onConnectionAlive function that will be called when connection alive message is received by the subscription.

This is useful for implementing healthchecks on top of the connection status, as instructed by connection alive messages (actual message differs per protocol).