eventflux 2.2.1
eventflux: ^2.2.1 copied to clipboard
Efficient handling of server-sent event streams with easy connectivity and data management.
Changelog 📝 #
2.2.1 🚀 #
2.2.0 🛠️ #
- Solves #29
- Reconnect headers are now async. You can use async functions to fetch new headers, but make sure to return a
Map<String, String>from the function. - Refer README example for more info.
- Reconnect headers are now async. You can use async functions to fetch new headers, but make sure to return a
2.1.2 🛠️ #
- Solves #25
- The
onErrormethod now includes the JSON response from the backend in the error message, if the backend sends a JSON response to the frontend.
- The
2.1.1 🚀 #
- Added
reconnectHeadersparameter inReconnectConfigclass.- If you want to send custom headers during reconnect which are different from the initial connection, you can use this parameter.
- If you don't want to send any headers, you can skip this, initial headers will be used.
- Refer README example for more info
- Added Http Client Adapter to allow usage of different http clients
- Thanks to jcarvalho-ptech for the PR
- Updated Http package version to
1.2.2
2.1.0 🛠️ #
- Solves #18
- Ensures continuous connection even when network availability changes. (Again, I know, I know 🥹)
- Thanks to Andrew Abegg for the PR
- Solves #19
- Fixed README.md file for the example code.
2.0.0 🚀 #
Breaking
- Added
ReconnectConfigclass to manage reconnection settings.- Closes #7
- If you are using
autoReconnectparameter inconnectmethod,reconnectConfigparam is required. - Now you can set backoff strategy, max retries and retry interval.
- Check the updated README for more info.
1.7.0 🛠️ #
- Solves #12
- Disposing the instance of stream when
disconnectmethod is called.
- Disposing the instance of stream when
- Solves #13
onSuccessCallbackshould not be called unless 200 is returned- Thanks to Jan Gruenwaldt for the PR
1.6.7 🛠️ #
- Updated Http package version to
1.2.1
1.6.0 🚀 #
Added
- Web support #5
- Your existing code now flawlessly extends its magic to the web – no extra setup required, just pure, uninterrupted functionality across platforms!
1.5.1 📝 #
Updated
- Readme's
EventFlux for Every ScenarioSection
1.5.0 🚀 #
Added
spwanmethod- Solves #3
- Provides users the flexibility to implement multiple SSE connections.
- See the "Supercharged" section in the README for usage instructions.
1.0.0+2 🛠️ #
- If the connection is intentionaly severed/disconnected by calling
disconnet()method, then theautoReconnectwill not try to reconnect the connection again and again.- I know, it's dumb mistake I made. Sorry. 🥹
1.0.0 🚀 #
Breaking
- Updated the
connectmethod to be a void function instead of returningEventFluxResponse. This change accompanies the introduction of theonSuccessCallbackparameter, which provides theEventFluxResponsevia callback. This modification simplifies the connection process, making reconnections and stream updates more predictable and manageable.
0.6.2 🚀 #
Added
- support for
autoReconnecton connect method.
0.6.1 🚀 #
Added
- Core functionality for connecting to server-sent event streams.
EventFluxclass to manage event stream connections.EventFluxDataclass for representing event data.EventFluxExceptionclass for handling exceptions.- Support for both GET and POST connection types.
- Error and Disconnect handling and reconnection logic.
0.0.1 🍼 #
Hello world
