int, "exampleIndex" => int, "error" => float, "synaptic_weights" => array] public string $sessionId, public string $trainingId, ) { // } /** * Get the channels the event should broadcast on. * * @return array */ public function broadcastOn(): array { // Log::debug("Broadcasting on channel: " . $this->sessionId . '-perceptron-training'); return [ new Channel($this->sessionId . '-perceptron-training'), ]; } public function broadcastWith(): array { return [ 'iterations' => $this->iterations, 'trainingId' => $this->trainingId, ]; } }