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());
        }
    }
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());
        }
    }
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 ( ) ) ; } }
Responds to a client request.

@param string $address
@param string $payload
Responds to a client request .