I tested the demo projects locally and is working fine but failed when using and applying SSL to it in my DigitalOcean droplet (Ubuntu 16.04).
I have been looking for a fix and tried several suggestions already but I still keep on getting failed WebSocket handshake error with response code of 404.
See the image below:
Hope someone could share their solutions on this matter.
2
Answers
It turns out I only need to add sudo to start the Websocket successfully.
All the settings/configurations were followed religiously as described here: https://docs.beyondco.de/laravel-websockets/1.0/basic-usage/ssl.html#configuration
In the SSL section of your
config/websockets.php
, try setting verify_peer to false.Also make sure you configure SSL properly https://docs.beyondco.de/laravel-websockets/1.0/basic-usage/ssl.html#configuration