Centrifugo: API Design & Integration Surface
Docs-backedCentrifugo's server API is available via REST (POST /api with JSON body) and gRPC. Commands: publish (send to channel), broadcast (send to multiple channels), subscribe, unsubscribe, presence, presence_stats, history, history_remove, channels, info, disconnect. All commands are POST to /api with a JSON body containing method and params fields. Authentication to the server API uses an api_key header. The gRPC API mirrors the REST surface. SDK support: JavaScript, Go, Python, Ruby, PHP (Centrifuge client libs for connection; server API uses direct HTTP).