From a76555dbcdf622add04010810b273a853493baf0 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Thu, 23 Nov 2023 12:10:12 +0000 Subject: [PATCH] wip --- src/Http/Server.php | 4 ++++ src/Managers/ArrayChannelManager.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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()]; } /**