apollo-link icon indicating copy to clipboard operation
apollo-link copied to clipboard

Expose subscription client

Open maclockard opened this issue 4 years ago • 0 comments

This makes it possible to manually set callbacks for onDisconnected, onReconnected etc. The advantage here is end users will be able to better handle network blips rather than having apollo have to handle it. See https://github.com/apollographql/apollo-link/issues/234 for an example of folks using this functionality now.

An alternative implementation would look like exposing these callbacks as optional parameters in the constructor. Let me know what you prefer!

TODO:

  • [ ] Make sure all of new logic is covered by tests and passes linting
  • [ ] Update CHANGELOG.md with your change

maclockard avatar Mar 17 '20 21:03 maclockard