Skip to content

Active Sessions

Gets the current active session count.

This example assumes using Simli; is in scope and apiKey contains your Simli API key.

1
2
3
4
5
6
using var client = new SimliClient(apiKey);

// Check the number of currently active sessions
var response = await client.GetRatelimiterSessionsAsync();

Console.WriteLine($"Active sessions: {response.CurrentUsage ?? 0}");