'pusher:error', 'data' => json_encode([ 'code' => $this->code, 'message' => $this->message, ]), ]; } /** * Get the encoded Pusher formatted error payload. */ public function message() { return json_encode( $this->payload() ); } }