Issue
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.
Solution
It turns out I only need to add sudo to start the Websocket successfully.
sudo php artisan websockets:serve
All the settings/configurations were followed religiously as described here: https://docs.beyondco.de/laravel-websockets/1.0/basic-usage/ssl.html#configuration
Answered By - Nelson Melecio Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.