# Sockudo > Sockudo is a self-hosted Rust realtime server with Pusher-compatible Protocol V1, opt-in Ably REST/WebSocket compatibility, Protocol V2 durability (history, recovery, mutable messages, annotations), horizontal fanout, push notifications, and AI Transport. Full documentation in one file: https://sockudo.io/llms-full.txt ## Introduction - [Overview](https://sockudo.io/docs.md): Build, operate, and extend Sockudo: the self-hosted Rust realtime server with Pusher compatibility, Protocol V2, clustered fanout, recovery, history, push, and official SDKs. ## Start - [Overview](https://sockudo.io/docs/getting-started/overview.md): Understand Sockudo's building blocks, its two wire protocols, channel types, and the path from a local server to a clustered production deployment. - [Installation](https://sockudo.io/docs/getting-started/installation.md): Run Sockudo with Docker, a prebuilt Linux binary, Cargo, or Helm, choose the right feature set, and verify the server with health probes. - [First connection](https://sockudo.io/docs/getting-started/first-connection.md): Connect a realtime client, subscribe to a channel, publish the first event from a trusted backend, and confirm delivery end to end. - [Authentication](https://sockudo.io/docs/getting-started/authentication.md): Protect private, presence, and encrypted channels, identify users, and issue Protocol V2 capability tokens from a trusted backend. - [Migration](https://sockudo.io/docs/getting-started/migration.md): Move from Pusher Channels or Soketi to Sockudo in phases, keeping existing clients on Protocol V1 and adopting Protocol V2 where it pays off. - [Troubleshooting](https://sockudo.io/docs/getting-started/troubleshooting.md): Diagnose connection, authentication, publish, cluster fanout, recovery, push notification, and webhook problems one boundary at a time. ## Operate - [Overview](https://sockudo.io/docs/deployment.md): Choose a Sockudo production topology, configuration strategy, and rollout path. - [Static configuration](https://sockudo.io/docs/deployment/static-configuration.md): Configure Sockudo with TOML or JSON, understand environment precedence, and keep secrets out of static files. - [Linux VM and bare metal](https://sockudo.io/docs/deployment/linux.md): Run Sockudo under systemd with correct file limits, measured kernel tuning, and a WebSocket-aware proxy. - [Docker and Compose](https://sockudo.io/docs/deployment/docker.md): Run Sockudo in containers with mounted configuration, correct limits, health checks, and shared backends. - [Kubernetes and Helm](https://sockudo.io/docs/deployment/kubernetes.md): Deploy Sockudo with production Helm values, safe probes, disruption controls, ingress, and node tuning. - [Cloud platforms](https://sockudo.io/docs/deployment/cloud-platforms.md): Deploy Sockudo on AWS, Google Cloud, and Azure with managed backends, WebSocket load balancing, and provider-supported node tuning. - [Capacity planning and benchmarks](https://sockudo.io/docs/deployment/capacity-planning.md): Size Sockudo from measured connection, fanout, memory, network, and failure budgets without benchmarking the load generator by accident. - [Configuration](https://sockudo.io/docs/server/configuration.md): Configure apps, adapters, cache, queues, rate limits, history, recovery, webhooks, and push notifications. - [HTTP API](https://sockudo.io/docs/server/http-api.md): Publish events, query channels, read history, mutate messages, manage annotations, and operate push notifications. - [Realtime application patterns](https://sockudo.io/docs/server/realtime-application-patterns.md): Practical Sockudo patterns for public channels, private auth, presence, history, mutable messages, annotations, and scaling. - [Scaling](https://sockudo.io/docs/server/scaling.md): Design multi-node Sockudo deployments with shared adapters, cache, queues, recovery, and push fanout. - [Security](https://sockudo.io/docs/server/security.md): Secure Sockudo credentials, auth endpoints, origin policy, encrypted channels, webhooks, and push provider credentials. - [Observability](https://sockudo.io/docs/server/observability.md): Monitor Sockudo connections, subscriptions, publishes, fanout, history, recovery, webhooks, and push notifications. - [History and recovery](https://sockudo.io/docs/server/history-recovery.md): Use Protocol V2 stream continuity, replay buffers, channel history, presence history, rewind, and mutable messages. - [Indestructibility simulator](https://sockudo.io/docs/server/indestructibility-simulator.md): Run Sockudo's deterministic disaster simulator for durable realtime and push invariants. - [Mutable messages](https://sockudo.io/docs/server/mutable-messages.md): Versioned message actions, aggregation, endpoints, authorization, limits, and error behavior. - [Webhooks](https://sockudo.io/docs/server/webhooks.md): Deliver channel lifecycle, client event, presence, versioned-message, annotation, and AI Transport events to your backend. - [Push notifications](https://sockudo.io/docs/server/push-notifications.md): Configure and operate Sockudo's core push notification platform for FCM, APNs, Web Push, HMS, and WNS. - [Apple Live Activities](https://sockudo.io/docs/server/apple-live-activities.md): Run ActivityKit start, update, end, and iOS 18 broadcast delivery through Sockudo's durable push pipeline. - [Push operations](https://sockudo.io/docs/server/push-operations.md): Operate Sockudo push cleanup, metrics, backpressure, and provider outage runbooks. - [MCP server](https://sockudo.io/docs/server/mcp.md): Let AI agents operate Sockudo through the Model Context Protocol with scoped tokens, audited tools, resources, and prompts. - [AI Transport overview](https://sockudo.io/docs/server/ai-transport-overview.md): How Sockudo maps AI Transport sessions onto existing V2 realtime, history, recovery, push, and presence primitives. - [Ably REST, WebSocket, and AI Transport compatibility](https://sockudo.io/docs/server/ably-ai-transport-compatibility.md): Sockudo's evidence-backed Ably REST and WebSocket compatibility surface, excluding Live Objects. - [AI Transport conventions](https://sockudo.io/docs/server/ai-transport-conventions.md): Default-off AI Transport event and extras conventions for Protocol V2. - [AI Transport providers](https://sockudo.io/docs/server/ai-transport-providers.md): Stream model output from Vercel AI SDK, OpenAI, Anthropic, OpenAI-compatible APIs, and custom providers through Sockudo AI Transport. - [Authentication for AI Transport](https://sockudo.io/docs/server/ai-transport-authentication.md): Capability tokens, claims, channel patterns, refresh, revocation, and server-authorized requests. - [Token streaming and rollup](https://sockudo.io/docs/server/token-streaming-rollup.md): AI Transport append rollup settings for high-rate token streams. - [Agent Presence](https://sockudo.io/docs/server/agent-presence.md): Track AI agent status with Protocol V2 presence updates and optional disconnect grace. - [Push notifications for AI Transport](https://sockudo.io/docs/server/ai-transport-push-notifications.md): Wake users when an AI agent finishes while they are away. - [Limits and quotas](https://sockudo.io/docs/server/ai-transport-limits-quotas.md): Canonical AI Transport, mutable-message, history, presence-history, push, and capability-token limits. - [Production checklist](https://sockudo.io/docs/server/ai-transport-production-checklist.md): Preflight checklist for AI Transport deployments. - [AI Transport production operations](https://sockudo.io/docs/server/ai-transport-production-ops.md): Runbooks, capacity formulas, alerts, chaos playbooks, and troubleshooting for AI Transport at scale. - [AI Transport troubleshooting](https://sockudo.io/docs/server/ai-transport-troubleshooting.md): Common AI Transport production issues and operator actions. ## Build - [Overview](https://sockudo.io/docs/clients.md): Choose and operate an official Sockudo realtime client for web, mobile, desktop, Python, and backend WebSocket consumers. - [JavaScript and TypeScript](https://sockudo.io/docs/clients/javascript.md): Use @sockudo/client in browsers, Node.js, workers, React, Vue, React Native, and NativeScript. - [Swift](https://sockudo.io/docs/clients/swift.md): Use SockudoSwift on iOS, macOS, tvOS, watchOS, and visionOS. - [Kotlin](https://sockudo.io/docs/clients/kotlin.md): Use sockudo-kotlin on Android and JVM with auth, recovery, rewind, filters, deltas, history proxies, and push registration. - [Flutter and Dart](https://sockudo.io/docs/clients/flutter.md): Use sockudo_flutter to add Sockudo realtime channels, presence, and Protocol V2 features to Flutter apps. - [.NET realtime](https://sockudo.io/docs/clients/dotnet.md): Use Sockudo.Client for .NET realtime applications with Protocol V2, recovery, filters, deltas, and push proxy helpers. - [Python](https://sockudo.io/docs/clients/python.md): Use the async sockudo-python realtime client with Protocol V2, protected channels, recovery, filters, deltas, history, and encrypted payloads. - [Protocol V2](https://sockudo.io/docs/clients/protocol-v2.md): Use Sockudo-native realtime semantics for recovery, rewind, deltas, filters, history, annotations, and mutable messages. - [Filters and delta compression](https://sockudo.io/docs/clients/filters-delta.md): Reduce delivered traffic with Protocol V2 server-side tag filtering and delta reconstruction. - [Presence history](https://sockudo.io/docs/clients/presence-history.md): Read current presence, historical presence events, and reconstructed snapshots through trusted proxy endpoints. - [Overview](https://sockudo.io/docs/server-sdks.md): Use official Sockudo HTTP SDKs to publish, authenticate, inspect state, validate webhooks, manage history, and operate push notifications. - [Node.js](https://sockudo.io/docs/server-sdks/node.md): Publish events, sign channel and user auth, validate webhooks, read history, mutate versioned messages, and manage push from Node.js with the sockudo package. - [Python](https://sockudo.io/docs/server-sdks/python.md): Publish events, sign channel and user auth, validate webhooks, read history, mutate versioned messages, and manage push from Python with the sync or asyncio Sockudo client. - [PHP](https://sockudo.io/docs/server-sdks/php.md): Publish events, sign channel and user auth, validate webhooks, read state and history, edit versioned messages, and manage push from PHP with sockudo/sockudo-php-server. - [Laravel](https://sockudo.io/docs/server-sdks/laravel.md): Use Sockudo as a native Laravel broadcasting driver with Echo-compatible channel auth, plus facade access to history, versioned messages, annotations, and push. - [Ruby](https://sockudo.io/docs/server-sdks/ruby.md): Publish events, sign channel and user auth, validate webhooks, read history, manage versioned messages, and run push workflows from Rails or any Rack app with the sockudo gem. - [Go](https://sockudo.io/docs/server-sdks/go.md): Publish events, sign channel and user auth, validate webhooks, read history, manage versioned messages, and run push workflows from net/http services with the Go server SDK. - [Rust](https://sockudo.io/docs/server-sdks/rust.md): Publish events, sign channel and user auth, validate webhooks, read history, mutate versioned messages, and manage push from async Rust services with the sockudo-http crate. - [Java](https://sockudo.io/docs/server-sdks/java.md): Publish events, sign channel auth, validate webhooks, read history, mutate versioned messages, and manage push from Java and Spring Boot backends, with synchronous and CompletableFuture clients. - [.NET](https://sockudo.io/docs/server-sdks/dotnet.md): Publish events, sign channel and user auth, validate webhooks, query history, mutate versioned messages, and manage push from .NET with the SockudoServer package. - [Swift](https://sockudo.io/docs/server-sdks/swift.md): Publish events, sign channel auth, verify webhooks, read history, mutate versioned messages, and manage push from Swift with the Sockudo package. ## Reference - [Protocol reference](https://sockudo.io/docs/reference/protocol.md): Compare Pusher-compatible Protocol V1 with Sockudo-native Protocol V2. - [HTTP endpoints](https://sockudo.io/docs/reference/http-endpoints.md): Complete Sockudo endpoint matrix for WebSocket upgrades, HTTP APIs, push notifications, health checks, stats, and metrics. - [Configuration reference](https://sockudo.io/docs/reference/configuration.md): Reference major Sockudo configuration sections and the deployment decisions they control. - [Environment variables](https://sockudo.io/docs/reference/environment-variables.md): Complete Sockudo runtime environment variable reference. - [Compatibility](https://sockudo.io/docs/reference/compatibility.md): Understand which Sockudo features are Pusher-compatible and which require Protocol V2 or Sockudo-native SDKs. - [Error codes](https://sockudo.io/docs/reference/errors.md): Interpret Sockudo HTTP, WebSocket, authentication, history, recovery, webhook, and push errors.