Fixed topic gc bug

This commit is contained in:
2024-03-11 01:40:05 +01:00
parent c31c55fafd
commit 2cbc41d29e
5 changed files with 8 additions and 4 deletions

View File

@ -54,6 +54,9 @@ class Server
$this->logger = $this->createLogger();
$this->topicManager = new TopicManager();
$this->loop->addPeriodicTimer(30, function () {
$this->topicManager->garbageCollect();
});
$this->webSocketClients = new SplObjectStorage();