Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

saif21's avatar

Laravel Websockets Not Working on hostinger-server

I have setup my laravel websockets Project which is related to one-to-one calling system on localhost .it work fine on localhost but when i upload hostinger Hpanel then console shown Following Error: WebSocket connection to 'wss://aprih.com/app/app?protocol=7&client=js&version=7.6.0&flash=false' failed:

0 likes
4 replies
vincent15000's avatar

Are you using pusher ? Another technology ?

Have you configured the credentials ?

saif21's avatar

@vincent1500 I'm using pusher, Websocket, webRTC and vue js. I have configure live database.

1 like
saif21's avatar

@vincent15000 i'm share .env file here APP_NAME=Laravel APP_ENV=local APP_KEY=base64:HJBNOzoOa288oVlEO7jofJIhLJIXkKrBqXPcNrINhP4= APP_DEBUG=true APP_URL=http://localhost

LOG_CHANNEL=stack LOG_LEVEL=debug

DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=vediocall DB_USERNAME=root DB_PASSWORD=

BROADCAST_DRIVER=pusher CACHE_DRIVER=file QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379

MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS=null MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET=

PUSHER_APP_ID=app PUSHER_APP_KEY=app PUSHER_APP_SECRET=app PUSHER_APP_CLUSTER=mt1 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Please or to participate in this conversation.