0

WebSocket connection to wss://subdomain.domain.com/app/... failed

Its working on locally without any issue but in production it gives issue

here is my .env for production

REVERB_APP_ID=401132
REVERB_APP_KEY=vcgwoutdwqj3qek4ixsv
REVERB_APP_SECRET=o1jvqubryshtorosmgbz
REVERB_HOST="subdomain.domain.com"
REVERB_PORT=443
REVERB_SCHEME=https

REVERB_SERVER_HOST="server-ip"
REVERB_SERVER_PORT=8080

VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"

Also when starting reverb server --debug Starting server on server-ip:8080 (subdomain.doamin.com).

Pruning Stale Connections ............................ Pinging Inactive Connections .........................

Also i ran npm run build

I need help very badly. already tryinng for weeks Thanks in advance

i tried changing the REVERB_PORT and REVERB_HOST but no luck

3
  • Your reverb output shows port 8080, but your reverb port is 443, do you actually have a reverse proxy setup to tunnel traffic from subdomain.domain.com:443 to your reverb server running locally on 8080? Commented Jun 27 at 15:54
  • changed the port to 8080 Now Starting server on server-ip:8080 and the port 8080 is open Commented Jun 27 at 19:07
  • Changed the Description also but still no luck Commented Jun 27 at 19:09

0

Browse other questions tagged or ask your own question.