laravel Echo does not listen to channel and events
问题 To broadcast an event on a channel I used laravel Echo , redis and socket-io . this is my event : class ChatNewMessage implements ShouldBroadcast { use InteractsWithSockets, SerializesModels; public $targetUsers; public $message; public function __construct ($message) { $this->targetUsers = $message->chat->users->pluck('user_id'); $this->message = $message; } public function broadcastOn () { $userChannels = []; foreach ($this->targetUsers as $id) { $userChannels[] = 'user-channel.' . $id; }