Releases: georgeboot/laravel-echo-api-gateway
0.5.2: handle websocket connects/disconnects - bugfix
The (re)connection mechanism is much more robust now - also fixed an issue with "too many" reconnects - for details see:
0.5.1: simplify auth - make the "bearerToken" option work, and handle websocket disconnects
Two changes:
1- Handle websocket reconnects
2- Fix "auth"/"bearerToken" options for private channels authentication
ad 1) See #2
ad 2) Explanation:
To implement authorization for private channels, we previously had to use a "hack"/workaround like this:
window.axios.defaults.headers.common['Authorization'] = 'Bearer ' + token;
window.Echo = new Echo({
broadcaster,
host,
enabledTransports: ["ws", "wss"],
authEndpoint,
});
This was because the auth
option of the Echo
object didn't work, so we just passed the bearer token via an Axios header (or equivalent).
With this PR, we can now do this instead:
window.Echo = new Echo({
broadcaster,
host,
enabledTransports: ["ws", "wss"],
authEndpoint,
bearerToken: token,
});
P.S. the above is a simplified syntax for the following:
window.Echo = new Echo({
broadcaster,
host,
enabledTransports: ["ws", "wss"],
authEndpoint,
auth: {
headers: {
Authorization: 'Bearer ' + token,
}
},
});
as per: laravel/echo#353
0.5.0: AWS SDK upgrade
AWS SDK PHP upgraded, PHP 8.1/8.2 compatibility, Github Workflows upgraded, PHPStan upgraded, Laravel released added
0.3.1: Laravel 9 support
What's Changed
- Laravel 9 Support by @jdavidbakr in #21
New Contributors
- @jdavidbakr made their first contribution in #21
Full Changelog: 0.3.0...0.3.1
0.3.0
0.1.2
0.1.1
Merge branch 'master' of https://github.com/georgeboot/laravel-echo-a…
0.1.0
Update README.md
0.0.10
Merge branch 'master' of https://github.com/georgeboot/laravel-echo-a…
0.0.9
Update Websocket.ts