src/Socket/Enhanced/Server.php
function addBusinessWorker() {
        $this->_business_worker = new BusinessWorker;
        $this->_business_worker->onWorkerStart = [$this, 'onBusinessStart'];
        $this->_business_worker->onWorkerStop = [$this, 'onBusinessStop'];
        $this->_business_worker->eventHandler = $this;
        $this->businessWorkerConfig(DEFAULT_BUSINESS_WORKER_CONFIG);
    }
function addBusinessWorker() {
        $this->_business_worker = new BusinessWorker;
        $this->_business_worker->onWorkerStart = [$this, 'onBusinessStart'];
        $this->_business_worker->onWorkerStop = [$this, 'onBusinessStop'];
        $this->_business_worker->eventHandler = $this;
        $this->businessWorkerConfig(DEFAULT_BUSINESS_WORKER_CONFIG);
    }
function addBusinessWorker ( ) { $ this -> _business_worker = new BusinessWorker ; $ this -> _business_worker -> onWorkerStart = [ $ this , 'onBusinessStart' ] ; $ this -> _business_worker -> onWorkerStop = [ $ this , 'onBusinessStop' ] ; $ this -> _business_worker -> eventHandler = $ this ; $ this -> businessWorkerConfig ( DEFAULT_BUSINESS_WORKER_CONFIG ) ; }
单独添加BusinessWorker
单独添加BusinessWorker