*/ public function broadcastOn(): array { return [new PresenceChannel('room.1')]; } /** * 广播事件名(前端监听 .baccarat.pool_updated)。 */ public function broadcastAs(): string { return 'baccarat.pool_updated'; } /** * 广播数据。 * * @return array */ public function broadcastWith(): array { return [ 'round_id' => $this->round->id, 'bet_count_big' => $this->round->bet_count_big, 'bet_count_small' => $this->round->bet_count_small, 'bet_count_triple' => $this->round->bet_count_triple, ]; } }