PackageTrack
Sign in Get early access

sse_channel

StreamChannel wrappers for Server Sent Events.

0.2.2 83K downloads/mo #1196 most downloaded on pub.dev jamiewest/sse_channel

What this package is like to depend on

Last release 10 months ago

07 Oct 2025

Release timing varies

gaps range from 9 days to 1.6 years

Nearly every release is documented

notes for 7 of 7 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

7 releases · first in 2022

3 releases in the last 12 months

see the full history below

Release timeline

7 releases · Dec 2022 to Oct 2025
2023 2024 2025 2026
Release Pre-release

Releases

latest 7
  1. 0.2.2 07 Oct 2025
    Release notes
    • Ensure SseSink.close waits for pending outgoing messages so the final payload reaches the server before the connection shuts down.
    • Serialize IO POST requests to preserve outbound message ordering and avoid race conditions when multiple sends happen back-to-back.
    • Unified the implementation into a single SseChannel that runs on both VM and web platforms, removing the old IO/HTML split.
    • Document the need to await SseChannel.ready in the README quick start and expand integration coverage for the close-after-send flow.
    Open source →
  2. 0.2.1 27 Sep 2025
    Release notes
    • Added an injectable IOSseChannel(StreamChannel<String?> channel) constructor so IO clients can supply their own transport (useful for tests or custom proxies) while still reusing the package's reconnection and error handling.
    • Relaxed IO client disposal to play nicely with externally managed HTTP clients when the channel is torn down.
    Open source →
  3. 0.2.0 27 Sep 2025
    Release notes
    • Breaking: SseChannel.stream now emits Event objects exposing data, event, and id metadata rather than raw strings.
    • Improved IO client compliance with the WHATWG SSE spec: preserves Last-Event-ID, honors retry: hints, sends Cache-Control: no-cache, and retries automatically.
    • Surface connection and send failures as SseChannelException for both IO and HTML implementations and re-export the type for package users.
    • Added HtmlSseChannel.test to make browser-specific code testable without a real network connection.
    • Expanded test coverage with extensive unit tests for the event transformer, IO reconnect flow, and browser behaviour.
    Open source →
  4. 0.1.1 09 Feb 2024
    Release notes
    • Update packages.
    Open source →
  5. 0.0.3 01 Dec 2022
    Release notes
    • Fix README.
    Open source →
  6. 0.0.2 01 Dec 2022
    Release notes
    • Update README and example, updates.
    Open source →
  7. 0.0.1 01 Dec 2022
    Release notes
    • Initial version.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive