jeudi 1 octobre 2020

Laravel websocket not working on live server?

I am using the pusher replacement package https://beyondco.de/docs/laravel-websockets/basic-usage/starting. This package is working fine on the localhost but working on a live server giving this error.

app.js:1 WebSocket connection to 'ws://IP-Addresss:3030/app/qwerty?protocol=7&client=js&version=7.0.0&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

I think because the server is Linux may there is a port issue. I run laravel WebSocket server on 3030 port but didn't get any success.

The server configuration is a little bit different. They have provided different server configurations but I don't know which will suit me.

https://beyondco.de/docs/laravel-websockets/basic-usage/ssl

Please, anybody, help me to know which configuration will suit on AWS ec2 instance. we are using an IP address not redirecting to any domain name. this is a nonsecure connection.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire