Closed as not planned
Description
After upgrading pusher from version 7.0.2 to 7.2.0 we stopped receiving messages on private channels. Our stack uses laravel 8.x (v8.83.25) and laravel-echo with pusher-js on frontend.
The weirdest part is that we did not made any change to the broadcasting code, we broadcast data on private channels to subscribed users with json data. Connection is being made to the back-end, authorization is successful, subscription is created but messages are not being sent anymore.
Example broadcast class:
class BuildStatusUpdated implements ShouldBroadcastNow
{
private SomeModel $model;
public function __construct(SomeModel $model)
{
$this->model = $model;
}
public function broadcastOn()
{
return new PrivateChannel('App.Model.'.$this->model->uuid);
}
public function broadcastAs(): string
{
return 'model.updated.buildstatus';
}
public function broadcastWith(): array
{
return [
'uuid' => $this->model->uuid
];
}
}
Frontend subscription code (relevant part):
Echo.private(`App.Model.${modelUuid}`).listen(
".model.updated.buildstatus",
callback
)
Metadata
Metadata
Assignees
Labels
No labels