Category : laravel-websockets

I am using laravel-websocket successfully in local and staging environment. However, when in production, I get the error WebSocket connection to ‘<URL>’ failed: WebSocket is closed before the connection is established.. The php application is running in a container and the websocket server is running in a different container, both linked with link attribute in ..

Read more

I want to install Laravel Web-Socket package but I face some errors when I run this command composer require beyondcode/laravel-websockets Using version ^1.12 for beyondcode/laravel-websockets Running composer update beyondcode/laravel-websockets –with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 – Root composer.json ..

Read more

Laravel-Websockets not working over HTTPS on Laragon (Apache) Currently I’m using the default Laragon generated SSL certificate, I’m not sure how to add the SSL certificates with my Websocket. My project directory: E:WebsiteslaravelComputerReflex My SSL Directory: E:laragonetcssl On the documention it’s mentioned to add the SSL certificate path on .env file, which I’ve tried but ..

Read more

I have server where I serve Laravel app from sub-directory like https://laravel-apps.test/app1. It throws this error WebSocket connection to ‘wss://laravel-apps.test:6001/app/Kfjaina1m7?protocol=7&client=js&version=7.0.3&flash=false’ failed:. It works if I serve the app directly like https://laravel-app1.test. I’m sure I’m missing something but I’m not figuring out what? Probably the above URL should also contain the sub-directory string when making connect ..

Read more