A
A
ADamCarraway2022-01-06 14:20:44
Laravel
ADamCarraway, 2022-01-06 14:20:44

WebSocket connection to failed: no error description, why?

In the browser console I see the following error:
61d6cee163365186042122.png
My settings

window.Echo = new Echo({
 broadcaster: "pusher",
 cluster: "eu",
 disableStats: true,
 enabledTransports: ["ws", "wws"],
 encrypted: true,
 forceTLS: false,
 key: "00000000000",
 wsHost: "site.ru",
 wsPort: 6001,
 wssPort: 6001,
});


'pusher' => [
            'driver'  => 'pusher',
            'key'     => env('PUSHER_APP_KEY'),
            'secret'  => env('PUSHER_APP_SECRET'),
            'app_id'  => env('PUSHER_APP_ID'),
            'options' => [
                'cluster'   => 'eu',
                'encrypted' => 'true',
                'host'      => 'site.ru',
                'port'      => '6001',
                'scheme'    =>'https',
            ],
        ],


Everything works locally. And there is a mistake on the sales pitch .
The server is running php artisan websockets:serve --host=127.0.0.1 --port=6001
What should I try to understand what is causing the errors? The logs are empty.
If you need to attach some more settings, write and I will update the description

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kulakov, 2022-01-06
@ivankprod

So turn on the logs on the server and see the error there)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question