protected function enablePush()
    {
        if (! class_exists('\React\ZMQ\Context')) {
            $this->error('React/ZMQ dependency is required to enable push. Stopping server.', 1);
            die();
        }
        
        $context = new ZMQContext($this->loop);
        
        $this->pull = $context->getSocket(ZMQ::SOCKET_PULL, self::SOCKET_PULL_ID . '.' . App::environment());
        $this->pull->bind('tcp://127.0.0.1:' . $this->option('push-port'));
        $this->pull->on('message', [$this->Dispatcher, 'push']);
        
        $this->info('Push enabled on port <comment>[' . $this->option('push-port') . ']</comment>', 1);
    }
protected function enablePush()
    {
        if (! class_exists('\React\ZMQ\Context')) {
            $this->error('React/ZMQ dependency is required to enable push. Stopping server.', 1);
            die();
        }
        
        $context = new ZMQContext($this->loop);
        
        $this->pull = $context->getSocket(ZMQ::SOCKET_PULL, self::SOCKET_PULL_ID . '.' . App::environment());
        $this->pull->bind('tcp://127.0.0.1:' . $this->option('push-port'));
        $this->pull->on('message', [$this->Dispatcher, 'push']);
        
        $this->info('Push enabled on port <comment>[' . $this->option('push-port') . ']</comment>', 1);
    }
protected function enablePush ( ) { if ( ! class_exists ( '\React\ZMQ\Context' ) ) { $ this -> error ( 'React/ZMQ dependency is required to enable push. Stopping server.' , 1 ) ; die ( ) ; } $ context = new ZMQContext ( $ this -> loop ) ; $ this -> pull = $ context -> getSocket ( ZMQ :: SOCKET_PULL , self :: SOCKET_PULL_ID . '.' . App :: environment ( ) ) ; $ this -> pull -> bind ( 'tcp://127.0.0.1:' . $ this -> option ( 'push-port' ) ) ; $ this -> pull -> on ( 'message' , [ $ this -> Dispatcher , 'push' ] ) ; $ this -> info ( 'Push enabled on port <comment>[' . $ this -> option ( 'push-port' ) . ']</comment>' , 1 ) ; }
Enable the option to push messages from
the Server to the client.

@return void
Enable the option to push messages from the Server to the client .