Home > OS >  Failed WebSocket Connection (Pusher.com and Laravel)
Failed WebSocket Connection (Pusher.com and Laravel)

Time:09-06

I have a problem with websocket connection. This is the error in the browser. I am getting a message in pusher.com just then I refresh the page, but not every time the websocket connects. I think something is wrong with my .env file, but not sure. enter image description here

.env file:

PUSHER_APP_ID=...
PUSHER_APP_KEY=...
PUSHER_APP_SECRET=...
PUSHER_HOST=null
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=eu

What host should I write to solve it? Or the problem is somewhere else?

CodePudding user response:

When connecting to Pusher you do not need to set the host or port. You can remove these variables and then the library will be able to connect to Pusher.

  • Related