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 2026Releases
latest 36-
4.2.008 Apr 2026Release notes
Open source →- 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.
- Update the minimum Dart SDK version to
-
4.1.820 May 2025 -
4.1.711 Dec 2024 -
4.1.616 Jul 2024 -
4.1.529 Feb 2024Release notes
Open source →- Drop unneeded dependency on
package:js. - Update the minimum Dart SDK version to
3.3.0. - Support the latest
package:web.
- Drop unneeded dependency on
-
4.1.422 Nov 2023 -
4.1.315 Nov 2023 -
4.1.216 Dec 2022Release notes
Open source →- Send
fetchrequests instead ofXHRrequests. - Add an optional
debugKeyparameter toSseClientto include in logging. - Add a dependency on
package:js. - Update the minimum Dart SDK version to
2.16.0.
- Send
-
4.1.119 Oct 2022Release notes
Open source →- Apply
keepAlivelogic toSocketExceptions. - Switch from using
package:pedantictopackage:lints - Rev the minimum required SDK to 2.15.
- Populate the pubspec
repositoryfield.
- Apply
-
4.1.007 Jun 2021Release notes
Open source →- Limit the number of concurrent requests to prevent Chrome from automatically dropping them on the floor.
-
4.0.011 May 2021 -
3.8.317 Mar 2021 -
3.8.109 Feb 2021Release notes
Open source →- Fix an issue where closing the
SseConnectionstream would result in an error.
- Fix an issue where closing the
-
3.8.008 Feb 2021Release notes
Open source →- Add
onConnectedto replaceonOpen. - Fix an issue where failed requests would not add a
doneevent to the connectionsink.
- Add
-
3.7.005 Feb 2021Release notes
Open source →- Deprecate the client's
onOpengetter. Messages will now be buffered until a connection is established.
- Deprecate the client's
-
3.6.122 Jan 2021 -
3.6.027 Oct 2020Release notes
Open source →- 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.
-
3.5.023 Apr 2020Release notes
Open source →- Add new
shutdownmethods onSseHandlerandSseConnectionto allow closing connections immediately, ignoring any keep-alive periods.
- Add new
-
3.4.009 Apr 2020Release notes
Open source →- Remove
onClosefromSseConnectionand ensure the correspondingsink.closecorrectly fires.
- Remove
-
3.3.009 Apr 2020Release notes
Open source →- Add an
onCloseevent to theSseConnection. This allows consumers to listen to this event in lue ofsseConnection.sink.doneas that is not guaranteed to fire.
- Add an
-
3.2.207 Apr 2020Release notes
Open source →- Fix an issue where
keepAlivemay cause state errors when attempting to send messages on a closed stream.
- Fix an issue where
-
3.2.102 Mar 2020 -
3.2.027 Feb 2020Release notes
Open source →- Re-expose
isInKeepAlivePeriodflag onSseConnection. This flag will betruewhen a connection has been dropped and is in the keep-alive period waiting for a client to reconnect.
- Re-expose
-
3.1.201 Feb 2020Release notes
Open source →- Fix an issue where the
SseClientwould not send adoneevent when there was an error with the SSE connection.
- Fix an issue where the
-
3.1.106 Jan 2020Release notes
Open source →- Make
isInKeepAliveonSseConnectionprivate.
Note that this is a breaking change but in actuality no one should be depending on this API.
- Make
-
3.1.006 Jan 2020Release notes
Open source →- Add optional
keepAliveparameter to theSseHandler. IfkeepAliveis 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.
- Add optional
-
3.0.015 Nov 2019Release notes
Open source →- Adds discovery API to find both a configuration and its location:
findPackageConfigAndFileandfindPackageConfigAndUri. - Removes support for the
.packagesfile.
The Dart SDK no longer supports that file, and no new.packagesfiles
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
readAnyConfigFiletoreadConfigFile, and removed
thepreferNewestparameter. - Same for
readAnyConfigFileUriwhich becomesreadConfigFileUri. - Old functions still exists as deprecated, forwarding to the new
functions without thepreferNewestargument.
MakesPackageConfig,PackageandLanguageVersion@sealedclasses,
in preparation for making themfinalin a future update.
- Renamed
- Adds
PackageConfig.minVersionto complement.maxVersion.
Currently both are2.
Release notes
Open source →- Add retry logic.
Possible Breaking Change Error messages may now be delayed up to 5 seconds in the client.
- Adds discovery API to find both a configuration and its location:
-
2.1.214 Oct 2019 -
2.1.112 Sep 2019 -
2.1.011 Sep 2019 -
2.0.304 Sep 2019 -
2.0.226 Apr 2019Release notes
Open source →- Support the latest
package:stream_channel. - Require Dart SDK
>=2.1.0 <3.0.0.
- Support the latest
-
2.0.120 Mar 2019 -
2.0.011 Mar 2019Release notes
Open source →- No longer expose
closeandonCloseon anSseConnection. This is simply handled by the underlyingstream/sink. - Fix a bug where resources of the
SseConnectionwere not properly closed.
- No longer expose
-
1.0.015 Feb 2019 -
0.0.105 Feb 2019