public function createSubscriber($mode, $dsn = null, $subscribe = '', $options = array())
    {
        $options[ZMQ::SOCKOPT_SUBSCRIBE] = $subscribe;

        return $this->createSocket(ZMQ::SOCKET_SUB, $mode, $dsn, $options);
    }
public function createSubscriber($mode, $dsn = null, $subscribe = '', $options = array())
    {
        $options[ZMQ::SOCKOPT_SUBSCRIBE] = $subscribe;

        return $this->createSocket(ZMQ::SOCKET_SUB, $mode, $dsn, $options);
    }
public function createSubscriber ( $ mode , $ dsn = null , $ subscribe = '' , $ options = array ( ) ) { $ options [ ZMQ :: SOCKOPT_SUBSCRIBE ] = $ subscribe ; return $ this -> createSocket ( ZMQ :: SOCKET_SUB , $ mode , $ dsn , $ options ) ; }
Creates a subscriber socket.

@param string       $mode
@param string       $subscribe
@param string|array $dsn
@param array        $options

@return Socket
Creates a subscriber socket .