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

loom's avatar
Level 4

Laravel Websockets Stats and Authentication

I've installed Laravel Websockets and on my dev environment and all seems to work. Broadcasting, stats collecting, stats view, all good. When I deploy to production Broadcasting works but:

  1. No stats are getting written to the database.
  2. I get a 403 unauthorized when I try to hit the stats view (/laravel-websockets)
  3. I'm getting occasional large stack trace errors that seem to be associated to Broadcasting and middleware.

Is this a common issue here that someone could help with?

Laravel 6 CentOS 7

0 likes
5 replies
loom's avatar
Level 4

Now my dev isn't working either. Console shows ERR_BLOCKED_BY_CLIENT when trying to GET https://js.pusher.com/4.3/pusher.min.js Which makes since because I'm behind a proxy. But it shouldn't be accessing anything outside anyway. The package is installed. Did I just get a buggy package update?

loom's avatar
Level 4

I know what they are. I'm using them. : ) Laravel Websockets is a package which creates a local websocket server on your web server that emulates Pusher. My realtime broadcasting is functioning.

It has a feature for statistics. Stats are stored in the database and displayed with a supplied view/route. The stats feature stopped working. That is my issue.

Sinnbeck's avatar

@loom Regarding ERR_BLOCKED_BY_CLIENT

Disable your add blocker. My colleague just had the very same issue, caused by uBlock

Please or to participate in this conversation.