get server - scil/LaravelFly GitHub Wiki

Get LaravelFly Server

  1. \LaravelFly\Fly::getServer()

  2. app()->getServer()

Get Swoole Server

  1. \LaravelFly\Fly::getServer()->getSwooleServer()

  2. app()->getSwooleServer()