pratikbaid3 / flutter_client_sse

Dart package to help consume SSE API. Consumes server sent events by returning parsed model of the event, id, and the data
https://pub.dev/packages/flutter_client_sse
MIT License
40 stars 41 forks source link

close the stream correctly #7

Closed gigi214 closed 1 month ago

gigi214 commented 2 years ago

In this way, the stream will be terminated with the onDone callback

gigi214 commented 10 months ago

@pratikbaid3 why didn't you consider about close the streamController correctly?

This closing permit to call the onDone callback of the stream.

pratikbaid3 commented 1 month ago

@gigi214 closing this PR since this change has been picked up in the latest release v2.0.2