dart-lang / dart-lang/http

Add retry logic

Open
#1,544 5 comments 8 reactions 0 assignees View on GitHub
package:web_socket_channel
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

`http` has a [`retry`](https://pub.dev/packages/retry) package where we can configure our retry strategy.

Many Apps, like mine, need to have a contiguous and reliable websocket connection. We can achieve something like this now on this library listening for the Stream `done`, but that's not simple. It would be a lot nicer if the library could provide a mechanism for auto retries.

Contributor guide

Open the contributing guide

Research direction

Review the existing handling of the Stream `done` event and the proposed pub.dev `retry` package. Clarify how configurable retries should apply to websocket connections and what failure or reconnection behavior is expected; the work is done when the library provides that agreed retry mechanism.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.