Implemented writeAll and closeAll for groups
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user