public function onContestantScoreUpdate(Contestant $contestant) { if (!array_key_exists(self::CONTESTANT_SCORE, $this->subscribedTopics)) { return; } $response = $contestant->toJson(); $this->subscribedTopics[self::CONTESTANT_SCORE]->broadcast($response, [], []); }