diff --git a/src/Http/Server.php b/src/Http/Server.php index aefbd6b2..9d376d12 100644 --- a/src/Http/Server.php +++ b/src/Http/Server.php @@ -17,6 +17,10 @@ class Server public function __construct(protected ServerInterface $socket, protected Router $router, protected ?LoopInterface $loop = null) { + gc_enable(); + set_time_limit(0); + ob_implicit_flush(); + $this->loop = $loop ?: Loop::get(); $socket->on('connection', $this); diff --git a/src/Managers/ArrayChannelManager.php b/src/Managers/ArrayChannelManager.php index d09888c3..92280fb3 100644 --- a/src/Managers/ArrayChannelManager.php +++ b/src/Managers/ArrayChannelManager.php @@ -101,7 +101,7 @@ public function channels(string $channel = null): array|Channel return $this->applications[$this->application->id()][$channel]; } - return $this->applications[$this->application->id()] ?? []; + return $this->applications[$this->application->id()]; } /**