protected function respondToClient(string $address, string $payload = '')
    {
        try {
            $clientSocket = $this->clientSocket->getWrappedSocket();
            $clientSocket->send($address, \ZMQ::MODE_SNDMORE);
            $clientSocket->send('', \ZMQ::MODE_SNDMORE);
            $clientSocket->send($payload);
        } catch (\ZMQException $e) {
            $this->logger->error('Error respoding to client: ' . $e->getMessage());
        }
    }