This commit is contained in:
2021-03-03 13:52:25 +08:00
parent 071651bac1
commit adb8f04c25
2 changed files with 7 additions and 3 deletions
+3
View File
@@ -82,6 +82,9 @@ class Annotation extends Component
*/
private function scanDir(array $paths, string $namespace, string $alias): static
{
if ($alias == 'sockets') {
var_dump($paths);
}
foreach ($paths as $path) {
$explode = explode('/', $path);
+4 -3
View File
@@ -370,11 +370,12 @@ class Server extends HttpService
$settings['pid_file'] = PID_PATH;
}
$this->debug(sprintf('Check listen %s::%d -> ok', $config['host'], $config['port']));
if ($this->baseServer instanceof Websocket) {
$this->onLoadWebsocketHandler();
} else if ($this->baseServer instanceof Http) {
$this->onLoadWebsocketHandler();
if ($this->baseServer instanceof Http) {
$this->onLoadHttpHandler();
}
$this->baseServer->set($settings);
$this->onProcessListener();