Get Online Count • AI Agent SDK

get_online_count: Count online clients, optionally filtered by channel.

get_online_count

Method

</div>

This is a method of the PresenceProtocol class in the protocols module.

Count online clients, optionally filtered by channel.

Signature

python
def get_online_count(channel_name: Optional[str]) -> int

Parameters

ParamField Optional[str]

No description available.

Returns

ResponseField int

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1952