Closed wazzu3000 closed 1 month ago
You'll need to queue the listener in order to prevent a deadlock.
The issue with broadcasting (without queuing) is that you are making an HTTP request to the WebSocket server, which can't accept the request until the current process is complete. Of course, the current process cannot complete as it's waiting on the HTTP request so you end up in deadlock.
Reverb Version
1.0.0-beta12
Laravel Version
11.9
PHP Version
8.2.8
Description
Hi everybody and sorry for my terrible English.
From the last week I started to work with Laravel Reverb and I'm getting an error that is making me crazy. At time to call an event
dispatch
function from a MessageReceived listener, I'm receiving this error message:Steps To Reproduce
laravel/reverb
,mongodb/laravel-mongodb
,php-open-source-saver/jwt-auth
andlaravel/sanctum
.App\Providers\AppServiceProvider
class:I'm using the following environment variables for Laravel Reverb.