Laravel's better websocket broadcasting solution.

A no configuration pay as you go broadcasting websocket solution for Laravel applications.

Sign up Documentation

Setup

Up and running in minutes.

Include the broadcast driver:

                            composer require larasocket/larasocket-driver
                        

Add Larasocket as a broadcasting connection option in config/broadcasting.php:

                            'larasocket' => [
    'driver' => 'larasocket',
    'token' => env('LARASOCKET_TOKEN'),
],
                        

Update your .env:

                            BROADCAST_DRIVER=larasocket
LARASOCKET_TOKEN=<token>
MIX_LARASOCKET_TOKEN="${LARASOCKET_TOKEN}"
                        

Include the Larasocket client library:

                            npm i larasocket-js
                        

Update your Echo configuration in bootstrap.js:

                            import Echo from 'laravel-echo';
import Larasocket from 'larasocket-js';

window.Echo = new Echo({
    broadcaster: Larasocket,
    token: process.env.MIX_LARASOCKET_TOKEN,
});
                        
View the complete documentation.

Compare

No configuration. No servers. Affordable pricing.

Affordable No Configuration Scales
Larasocket
Pusher
Laravel Websockets
Socket.io

Pricing

Pricing that won't break the bank.

$ 0
10k  requests per month
50k  connection minutes per month
+ $ 1
per 100k requests
+ $ 1
per 500k connection minutes

Contact

Want to get in touch?

©Larasocket. All rights reserved.