sse_request 0.2.1 copy "sse_request: ^0.2.1" to clipboard
sse_request: ^0.2.1 copied to clipboard

A dart package for consuming SSE (Server Sent Events) using configurable and extensible connection lifecycle and event handling controller

0.2.1 #

  • Added tags to pubspec.yaml
  • Tests refactor

0.2.0 #

  • New:
    • Obtain handled stream and event stream straight from request shothand methods
    • Isolated sse request handlers to be used within any BaseRequest
    • Added equality checks to StreamSourceController and SseSourceControllerBase
  • Fix: Type annotations
  • Example: Updated using request shothand
  • Test: Updated using request shothand
  • Docs:
    • Updated README
    • Added documentation to shothand methods
    • Updated code documentation

0.1.2 #

  • Docs: Documentation improvement

0.1.1 #

  • Breaking change: SseSourceControllerBase now have generic type
  • New: added SseParsedSourceController, which allows for configuration of reconnection logic and parsing of each event into a specified object type.

0.1.0 #

  • New: SseSourceController, which manages connection lifecycle and event handling, and providing precise control over events. This change also offers significantly better extensibility.
  • Improvement: SseRequest's getStream() now uses SseSourceController
  • New: Default request headers for SseRequest.
  • Docs: Improved documentation and examples.

0.0.3 #

  • Rework: SseRequest now decodes SSE event stream first, then splits it to events
  • Fix: stream parser invalid exeptions

0.0.2 #

  • Breaking changes: SseRequest exposes Stream instead of SteamController.
  • Improvement: SseRequest now automatically handles listeners and closes events;

0.0.1 #

  • Initial version
1
likes
160
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A dart package for consuming SSE (Server Sent Events) using configurable and extensible connection lifecycle and event handling controller

Repository (GitHub)
View/report issues

Topics

#sse #server-sent-events #configurable #http-stream

License

BSD-3-Clause (license)

Dependencies

http, meta

More

Packages that depend on sse_request