0.7.0
🎛️ Take a full control.
Migrated from the legacy EventSource
to state-of-the-art @microsoft/fetch-event-source based on fetch
💪.
What's new
-
Support for Custom Authentication Headers: As of Echo 1.14.0, you can personalize your auth headers. Thanks to @ezequidias for the inspiration in #20
-
Debug Mode: Idea from qruto/laravel-wave-client#14
-
retry
Field Support: We've added support for theretry
field for setup reconnection time after connection close. -
Intelligent Connection Management with
pauseInactive
: This feature taps into the Page Visibility API to close connections when the document is hidden (like when a user minimizes the window), and auto-retries with the last event ID when it becomes visible again. This optimizes your server load. -
Custom CSRF Token Support: Craft your CSRF tokens as you see fit.
-
Full Customizability for Request Options: You now have the power to tailor any Request option to your needs.
Check out all Available Options → ⚙️
Fixed
- Enhanced Error Handling: Our
.error(...)
callbacks are now fully operational. - Persistent Leave Presence Channel Request: With the new
keepalive
option, your leave presence channel requests will be sent even if a user closes their browser.