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
42 stars 45 forks source link

Add `Accept` header by default #18

Open EmmaSimon opened 11 months ago

EmmaSimon commented 11 months ago

It looks like the listener is only able to consume data formatted as text/event-stream, since that's the case, is there a good reason not to automatically set the Accept header to that mimetype, since nothing else is actually accepted?

Imgkl commented 9 months ago

First of all, Thanks to @pratikbaid3 for this package. This issue led me to create my own package with better error handling and reconnection logic.

Check it out, EventFlux.