automerge / automerge-repo-swift

Extends the Automerge-swift library, providing support for working with multiple Automerge documents at once, with pluggable network and storage providers.
https://swiftpackageindex.com/automerge/automerge-repo-swift/documentation/automergerepo
MIT License
23 stars 4 forks source link

Add maximum retry configuration to WebSocket network provider #89

Closed heckj closed 5 months ago

heckj commented 5 months ago

After #88 (depends on #88), add a configuration option, and associated logic in errorOnRetry, to WebSocket network provider to allow setting a maximum number of retries before "giving up" and terminating the connection.

Dependent on #88 because without it in place, if a network provider "gave up", the application has no way of knowing about it and being able to react and/or provide appropriate UI for the failed state.