diff --git a/app/realtime.php b/app/realtime.php index 2bc8123fd9..26041fea1d 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -326,6 +326,12 @@ if (!function_exists('triggerStats')) { } } +if (!function_exists('checkForProjectUsage')) { + function checkForProjectUsage(Document $project): void + { + } +} + $realtime = getRealtime(); $presenceState = new PresenceState(); @@ -1086,6 +1092,10 @@ $server->onMessage(function (int $connection, string $message) use ($container, $project = null; } + if ($project !== null) { + checkForProjectUsage($project); + } + /* * Abuse Check *