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

ninjapeps's avatar

Site not receiving events in prod

I have a site that uses reverb. Events are working just fine on my machine. However, it doesn't receive anything once uploaded to the dev server.

window.addEventListener('DOMContentLoaded', function() {
  window.Echo.channel('makebid')
    .listen('MakeBid', (event) => {
      console.log('bid');
    })

  window.Echo.channel('closeauction')
    .listen('EndAuction', (event) => {
      console.log('end');
    })
});

Nothing got output to console.

Supervisor is set up to run reverb and queue. The logs aren't displaying any errors from reverb. The queue log is showing events running and completing. Browser is able to connect to the websocket.

What else could be causing this? I don't know what else I need to check in order to properly debug this.

0 likes
1 reply
JussiMannisto's avatar

Can you describe your production setup?

In local development, your browser typically connects directly to the local Reverb server. In production, you're usually going through Nginx, which handles TLS and proxies traffic to the Reverb server, which only listens on local connections.

Is that the setup you have?

What does the WebSocket connection in your browser's network tab look like (Request URL, Status Code, response headers)?

What do the MakeBid and EndAuction events in Laravel look like, especially their broadcastOn methods?

Please or to participate in this conversation.