Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 23, 2023
1 parent 49f7378 commit a76555d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Http/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Managers/ArrayChannelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()];
}

/**
Expand Down

0 comments on commit a76555d

Please sign in to comment.