PackageTrack
Sign in Get early access

sse

Provides client and server functionality for setting up bi-directional communication through Server Sent Events (SSE) and corresponding POST requests.

4.2.0 6.7M downloads/mo #94 most downloaded on pub.dev dart-lang/tools

What this package is like to depend on

Last release 4 months ago

08 Apr 2026

Release timing varies

gaps range from 4 weeks to 1.4 years

Nearly every release is documented

notes for 36 of 36 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

36 releases · first in 2019

1 release in the last 12 months

see the full history below

Release timeline

36 releases · Feb 2019 to Apr 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 36
  1. 4.2.0 08 Apr 2026
    Release notes
    • Update the minimum Dart SDK version to 3.11.0.
    • Handle out of order disconnects and reconnects.
      • Allow SSE connections to be reused if not in a keep alive period.
      • Allow a debounce period after connections to ignore disconnects which may be from prior connections.
      • Add logging when messages are received out of order.
    Open source →
  2. 4.1.8 20 May 2025
    Release notes
    • Simplify the format of client ID strings.
    Open source →
  3. 4.1.7 11 Dec 2024
    Release notes
    • Move to dart-lang/tools monorepo.
    Open source →
  4. 4.1.6 16 Jul 2024
    Release notes
    • Require package web: '>=0.5.0 <2.0.0'.
    Open source →
  5. 4.1.5 29 Feb 2024
    Release notes
    • Drop unneeded dependency on package:js.
    • Update the minimum Dart SDK version to 3.3.0.
    • Support the latest package:web.
    Open source →
  6. 4.1.4 22 Nov 2023
    Release notes
    • Fix incorrect cast causing failure with dart2wasm.
    Open source →
  7. 4.1.3 15 Nov 2023
    Release notes
    • Update the minimum Dart SDK version to 3.2.0.
    Open source →
  8. 4.1.2 16 Dec 2022
    Release notes
    • Send fetch requests instead of XHR requests.
    • Add an optional debugKey parameter to SseClient to include in logging.
    • Add a dependency on package:js.
    • Update the minimum Dart SDK version to 2.16.0.
    Open source →
  9. 4.1.1 19 Oct 2022
    Release notes
    • Apply keepAlive logic to SocketExceptions.
    • Switch from using package:pedantic to package:lints
    • Rev the minimum required SDK to 2.15.
    • Populate the pubspec repository field.
    Open source →
  10. 4.1.0 07 Jun 2021
    Release notes
    • Limit the number of concurrent requests to prevent Chrome from automatically dropping them on the floor.
    Open source →
  11. 4.0.0 11 May 2021
    Release notes
    • Support null safety.
    Open source →
  12. 3.8.3 17 Mar 2021
    Release notes
    • Require the latest shelf and remove dead code.
    Open source →
  13. 3.8.1 09 Feb 2021
    Release notes
    • Fix an issue where closing the SseConnection stream would result in an error.
    Open source →
  14. 3.8.0 08 Feb 2021
    Release notes
    • Add onConnected to replace onOpen.
    • Fix an issue where failed requests would not add a done event to the connection sink.
    Open source →
  15. 3.7.0 05 Feb 2021
    Release notes
    • Deprecate the client's onOpen getter. Messages will now be buffered until a connection is established.
    Open source →
  16. 3.6.1 22 Jan 2021
    Release notes
    • Drop dependency on package:uuid.
    Open source →
  17. 3.6.0 27 Oct 2020
    Release notes
    • Improve performance by buffering out of order messages in the server instead of the client.

    ** Note ** This is not modelled as a breaking change as the server can handle messages from older clients. However, clients should be using the latest server if they require order guarantees.

    Open source →
  18. 3.5.0 23 Apr 2020
    Release notes
    • Add new shutdown methods on SseHandler and SseConnection to allow closing connections immediately, ignoring any keep-alive periods.
    Open source →
  19. 3.4.0 09 Apr 2020
    Release notes
    • Remove onClose from SseConnection and ensure the corresponding sink.close correctly fires.
    Open source →
  20. 3.3.0 09 Apr 2020
    Release notes
    • Add an onClose event to the SseConnection. This allows consumers to listen to this event in lue of sseConnection.sink.done as that is not guaranteed to fire.
    Open source →
  21. 3.2.2 07 Apr 2020
    Release notes
    • Fix an issue where keepAlive may cause state errors when attempting to send messages on a closed stream.
    Open source →
  22. 3.2.1 02 Mar 2020
    Release notes
    • Fix an issue where keepAlive would only allow a single reconnection.
    Open source →
  23. 3.2.0 27 Feb 2020
    Release notes
    • Re-expose isInKeepAlivePeriod flag on SseConnection. This flag will be true when a connection has been dropped and is in the keep-alive period waiting for a client to reconnect.
    Open source →
  24. 3.1.2 01 Feb 2020
    Release notes
    • Fix an issue where the SseClient would not send a done event when there was an error with the SSE connection.
    Open source →
  25. 3.1.1 06 Jan 2020
    Release notes
    • Make isInKeepAlive on SseConnection private.

    Note that this is a breaking change but in actuality no one should be depending on this API.

    Open source →
  26. 3.1.0 06 Jan 2020
    Release notes
    • Add optional keepAlive parameter to the SseHandler. If keepAlive is supplied, the connection will remain active for this period after a disconnect and can be reconnected transparently. If there is no reconnect within that period, the connection will be closed normally.
    Open source →
  27. 3.0.0 15 Nov 2019
    Release notes
    • Adds discovery API to find both a configuration and its location:
      findPackageConfigAndFile and findPackageConfigAndUri.
    • Removes support for the .packages file.
      The Dart SDK no longer supports that file, and no new .packages files
      will be generated.
      Since the SDK requirement for this package is above 3.0.0,
      no supporting SDK can use or generate .packages.
    • Simplifies API that no longer needs to support two separate files.
      • Renamed readAnyConfigFile to readConfigFile, and removed
        the preferNewest parameter.
      • Same for readAnyConfigFileUri which becomes readConfigFileUri.
      • Old functions still exists as deprecated, forwarding to the new
        functions without the preferNewest argument.
        Makes PackageConfig, Package and LanguageVersion @sealed classes,
        in preparation for making them final in a future update.
    • Adds PackageConfig.minVersion to complement .maxVersion.
      Currently both are 2.
    Open source →
    Release notes
    • Add retry logic.

    Possible Breaking Change Error messages may now be delayed up to 5 seconds in the client.

    Open source →
  28. 2.1.2 14 Oct 2019
    Release notes
    • Remove package:http dependency.
    Open source →
  29. 2.1.1 12 Sep 2019
    Release notes
    • Use proper headers delimiter.
    Open source →
  30. 2.1.0 11 Sep 2019
    Release notes
    • Support Firefox.
    Open source →
  31. 2.0.3 04 Sep 2019
    Release notes
    • Fix an issue where messages could come out of order.
    Open source →
  32. 2.0.2 26 Apr 2019
    Release notes
    • Support the latest package:stream_channel.
    • Require Dart SDK >=2.1.0 <3.0.0.
    Open source →
  33. 2.0.1 20 Mar 2019
    Release notes
    • Update to package:uuid version 2.0.
    Open source →
  34. 2.0.0 11 Mar 2019
    Release notes
    • No longer expose close and onClose on an SseConnection. This is simply handled by the underlying stream / sink.
    • Fix a bug where resources of the SseConnection were not properly closed.
    Open source →
  35. 1.0.0 15 Feb 2019
    Release notes
    • Internal cleanup.
    Open source →
  36. 0.0.1 05 Feb 2019
    Release notes
    • Initial commit.
    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