sse 4.1.8
sse: ^4.1.8 copied to clipboard
Provides client and server functionality for setting up bi-directional communication through Server Sent Events (SSE) and corresponding POST requests.
4.1.8 #
- Simplify the format of client ID strings.
4.1.7 #
- Move to
dart-lang/toolsmonorepo.
4.1.6 #
- Require package
web: '>=0.5.0 <2.0.0'.
4.1.5 #
- Drop unneeded dependency on
package:js. - Update the minimum Dart SDK version to
3.3.0. - Support the latest
package:web.
4.1.4 #
- Fix incorrect cast causing failure with
dart2wasm.
4.1.3 #
- Update the minimum Dart SDK version to
3.2.0.
4.1.2 #
- 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.
4.1.1 #
- Apply
keepAlivelogic toSocketExceptions. - Switch from using
package:pedantictopackage:lints - Rev the minimum required SDK to 2.15.
- Populate the pubspec
repositoryfield.
4.1.0 #
- Limit the number of concurrent requests to prevent Chrome from automatically dropping them on the floor.
4.0.0 #
- Support null safety.
3.8.3 #
- Require the latest shelf and remove dead code.
3.8.2 #
- Complete
onConnectedwith an error if theSseClientreceives an error before the connection is successfully opened.
3.8.1 #
- Fix an issue where closing the
SseConnectionstream would result in an error.
3.8.0 #
- Add
onConnectedto replaceonOpen. - Fix an issue where failed requests would not add a
doneevent to the connectionsink.
3.7.0 #
- Deprecate the client's
onOpengetter. Messages will now be buffered until a connection is established.
3.6.1 #
- Drop dependency on
package:uuid.
3.6.0 #
- 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.0 #
- Add new
shutdownmethods onSseHandlerandSseConnectionto allow closing connections immediately, ignoring any keep-alive periods.
3.4.0 #
- Remove
onClosefromSseConnectionand ensure the correspondingsink.closecorrectly fires.
3.3.0 #
- Add an
onCloseevent to theSseConnection. This allows consumers to listen to this event in lue ofsseConnection.sink.doneas that is not guaranteed to fire.
3.2.2 #
- Fix an issue where
keepAlivemay cause state errors when attempting to send messages on a closed stream.
3.2.1 #
- Fix an issue where
keepAlivewould only allow a single reconnection.
3.2.0 #
- 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.
3.1.2 #
- Fix an issue where the
SseClientwould not send adoneevent when there was an error with the SSE connection.
3.1.1 #
- Make
isInKeepAliveonSseConnectionprivate.
Note that this is a breaking change but in actuality no one should be depending on this API.
3.1.0 #
- 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.
3.0.0 #
- Add retry logic.
Possible Breaking Change Error messages may now be delayed up to 5 seconds in the client.
2.1.2 #
- Remove
package:httpdependency.
2.1.1 #
- Use proper headers delimiter.
2.1.0 #
- Support Firefox.
2.0.3 #
- Fix an issue where messages could come out of order.
2.0.2 #
- Support the latest
package:stream_channel. - Require Dart SDK
>=2.1.0 <3.0.0.
2.0.1 #
- Update to
package:uuidversion 2.0.
2.0.0 #
- No longer expose
closeandonCloseon anSseConnection. This is simply handled by the underlyingstream/sink. - Fix a bug where resources of the
SseConnectionwere not properly closed.
1.0.0 #
- Internal cleanup.
0.0.1 #
- Initial commit.