Presence Protocol • AI Agent SDK
PresenceProtocol: Protocol for tracking client presence (online/idle/offline).
PresenceProtocol
Defined in the protocols module.
AI Agent
Protocol for tracking client presence (online/idle/offline).
Methods
track_presence()
Set or update a client’s presence status.
remove_presence()Remove a client’s presence (on disconnect).
get_presence()Get a single client’s presence info.
get_all_presence()Get presence info, optionally filtered by channel.
get_online_count()Count online clients, optionally filtered by channel.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 1916