Sockudo

Sockudo Documentation

Build, operate, and extend Sockudo: the Rust realtime server with Pusher compatibility, Protocol V2, clustered fanout, recovery, history, push, and official SDKs.

Sockudo is a self-hosted realtime platform for teams that want Pusher-compatible APIs with deeper control over protocol evolution, horizontal scaling, history, recovery, observability, and SDK behavior.

The server has two protocol surfaces:

  1. Run a local Sockudo server from Installation.
  2. Publish and receive your first event from First connection.
  3. Add private and presence channel auth from Authentication.
  4. Choose Protocol V1 or V2 from Compatibility.
  5. Wire your client from Realtime Clients and your backend from Server SDKs.
  6. Harden the deployment with Scaling, Security, and Observability.

Local baseline

The examples use the default development app:

port = 6001
host = "0.0.0.0"

[app_manager]
driver = "memory"

[[app_manager.array.apps]]
id = "app-id"
key = "app-key"
secret = "app-secret"
enabled = true

For production, replace every example credential, enable TLS at the edge, use managed app storage, and keep app secrets only on trusted servers.

On this page