If an event is broadcast to a non existend app id an exception is correctly raised ( Illuminate\Broadcasting\BroadcastException Pusher error: No matching application for ID) but the event is broadcast anyway and connected clients will receive that event even if the clients are connected to another app ID.
I do not know if this is an expected behaviour or not.
The reverb server is hosted on Forge.
Laravel version is 11.3.1 but it was updated from 10, i do not know if this could be an important information for you.
Steps To Reproduce
Setup Reverb
Create an Event that is broadcast to a public channel
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class OrderShipmentStatusUpdated implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public function __construct(public $name)
{
}
public function broadcastOn(): array
{
return [
new Channel('orders'),
];
}
}
Reverb Version
v1.0.0-beta6
Laravel Version
11.3.1
PHP Version
8.2.13
Description
If an event is broadcast to a non existend app id an exception is correctly raised ( Illuminate\Broadcasting\BroadcastException Pusher error: No matching application for ID) but the event is broadcast anyway and connected clients will receive that event even if the clients are connected to another app ID.
I do not know if this is an expected behaviour or not.
The reverb server is hosted on Forge.
Laravel version is 11.3.1 but it was updated from 10, i do not know if this could be an important information for you.
Steps To Reproduce
You can see the whole flow in the video below.
https://github.com/laravel/reverb/assets/36632/5a2932e9-58f3-432b-9e7a-3100a2a8a92e