protected function attachSubscribers(Client $client)
    {
        $client->getEmitter()->attach($this->getRetrySubscriber());
        $client->getEmitter()->attach($this->getErrorSubscriber());

        return $client;
    }