Skip to content

Releases: georgeboot/laravel-echo-api-gateway

0.5.2: handle websocket connects/disconnects - bugfix

27 Nov 10:52
5474b52
Compare
Choose a tag to compare

The (re)connection mechanism is much more robust now - also fixed an issue with "too many" reconnects - for details see:

#33 (comment)

0.5.1: simplify auth - make the "bearerToken" option work, and handle websocket disconnects

16 Nov 11:12
Compare
Choose a tag to compare

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

26 Aug 07:20
Compare
Choose a tag to compare

AWS SDK PHP upgraded, PHP 8.1/8.2 compatibility, Github Workflows upgraded, PHPStan upgraded, Laravel released added

0.3.1: Laravel 9 support

06 May 09:02
0e53b7f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.0...0.3.1

0.3.0

28 Dec 13:55
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.2...0.3.0

0.1.2

03 Aug 14:04
Compare
Choose a tag to compare

Sending messages to dropped connections will no longer generate an error. Instead, the connection is cleaned up from the connection store instead and the message is ignored. (#9)

0.1.1

28 Mar 10:03
Compare
Choose a tag to compare
Merge branch 'master' of https://github.com/georgeboot/laravel-echo-a…

0.1.0

28 Jan 15:29
Compare
Choose a tag to compare
Update README.md

0.0.10

28 Jan 11:28
Compare
Choose a tag to compare
Merge branch 'master' of https://github.com/georgeboot/laravel-echo-a…

0.0.9

28 Jan 08:25
Compare
Choose a tag to compare
Update Websocket.ts