Laravoole\Wrapper\Workerman::start PHP Method

start() public method

public start ( )
    public function start()
    {
        if (!empty($this->handler_config)) {
            $this->set($this->handler_config);
        }
        $this->on('Receive', [$this, 'onReceive']);
        $this->on('WorkerStart', [$this, 'onWorkerStart']);
        return $this->server->runAll();
    }

Usage Example

 public function start()
 {
     $this->config['deal_with_public'] = false;
     parent::start();
 }
All Usage Examples Of Laravoole\Wrapper\Workerman::start