id = $id; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() { return new PrivateChannel('live.chat.' . $this->id); } public function broadcastAs() { return 'stream.start'; } public function broadcastWith() { return ['ts' => time() ]; } }