Echo + Larasocket.js


The official Echo compatible larasocket-js package can be found here.

Supported Echo options:

window.Echo = new Echo({
    broadcaster: Larasocket,
    token: process.env.MIX_LARASOCKET_TOKEN, // required
    authorizer: details: https://laravel.com/docs/7.x/sanctum#authorizing-private-broadcast-channels,
    debug: true/false,
});