This commit is contained in:
HueByte
2026-04-24 14:14:33 +00:00
parent e54913cdc2
commit 35bf05433e
16 changed files with 1768 additions and 33 deletions
@@ -575,6 +575,41 @@ so the caller can broadcast departures and force-disconnect connections.</p>
<h2 class="section" id="events">Events
</h2>
<h3 id="EchoHub_Server_Services_PresenceTracker_UserCountChanged" data-uid="EchoHub.Server.Services.PresenceTracker.UserCountChanged">
UserCountChanged
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Server/Services/PresenceTracker.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Raised when the distinct online user count changes (multi-connection users only fire once).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event Action&lt;int&gt;? UserCountChanged</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</dt>
<dd></dd>
</dl>
</article>