Implemented writeAll and closeAll for groups

This commit is contained in:
2024-02-22 01:32:31 +01:00
parent b0aede55b9
commit ca84671f33
4 changed files with 31 additions and 2 deletions

View File

@ -44,5 +44,11 @@ class GroupManager implements EventEmitterInterface
return $group;
}
public function closeAll(string $reason, int $code=1001)
{
foreach ($this->groups as $group) {
$group->closeAll($reason, $code);
}
}
}