protected function createClientSocket()
    {
        /** @var Context|\ZMQContext $clientContext */
        $clientContext = new Context($this->loop);
        $this->clientSocket = $clientContext->getSocket(\ZMQ::SOCKET_ROUTER);
        $this->clientSocket->bind($this->config['sockets']['client']);
        $this->clientSocket->on('messages', [$this, 'onClientMessage']);
    }
protected function createClientSocket()
    {
        /** @var Context|\ZMQContext $clientContext */
        $clientContext = new Context($this->loop);
        $this->clientSocket = $clientContext->getSocket(\ZMQ::SOCKET_ROUTER);
        $this->clientSocket->bind($this->config['sockets']['client']);
        $this->clientSocket->on('messages', [$this, 'onClientMessage']);
    }
protected function createClientSocket ( ) { /** @var Context|\ZMQContext $clientContext */ $ clientContext = new Context ( $ this -> loop ) ; $ this -> clientSocket = $ clientContext -> getSocket ( \ ZMQ :: SOCKET_ROUTER ) ; $ this -> clientSocket -> bind ( $ this -> config [ 'sockets' ] [ 'client' ] ) ; $ this -> clientSocket -> on ( 'messages' , [ $ this , 'onClientMessage' ] ) ; }
Creates client-socket and assigns listener.
Creates client - socket and assigns listener .