jeudi 1 octobre 2020

Laravel websocket not working on live server?

I am using pusher replacement package https://beyondco.de/docs/laravel-websockets/basic-usage/starting . This package is working fine on local host but working on 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 server is linux may there is port issue. I run laravel websocket server on 3030 port but didn't get any success.

Server configuration is little bit different . They have provide different server configuration 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 ip address not redirecting to any domain name. this is non secure connection .



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire