Realtimeinfrastructureyou own.
A high-performance, self-hosted WebSocket server written in Rust. Keep the Pusher clients you already ship — then unlock recovery, history, mutable messages, push and AI streaming the moment you need them.
curl --proto '=https' --tlsv1.2 -sSfL https://sockudo.io/install.sh | shdocker run -p 6001:6001 ghcr.io/sockudo/sockudo:latestcargo install sockudo --locked- Pusher Protocol V1 compatible
- MIT licensed
- 8 horizontal fanout backends
- 16 official SDKs
Plugs into the stack you already run
Change one hostname.
Keep every client.
Protocol V1 is a strict Pusher compatibility target: same channels, same auth signatures, same HTTP publish API. Point pusher-js or Laravel Echo at Sockudo and ship. Adopt Protocol V2 later, one app at a time.
- Public, private, presence and encrypted channels
- Pusher-signed HTTP API, batch triggers and webhooks
- Opt-in Ably REST + WebSocket compatibility facade
1import Pusher from "pusher-js";2 3const pusher = new Pusher("app-key", {4- cluster: "mt1",4+ cluster: "local",5+ wsHost: "realtime.example.com",6 forceTLS: true,7 });8 9 pusher.subscribe("orders")10 .bind("order.created", render);One publish.
Every socket, every node.
- 01
Publish once
Your backend calls the signed HTTP API — or a server SDK — on any node. Idempotency keys make retries safe.
POST /apps/:id/events - 02
Fan out across the cluster
The adapter bus broadcasts to every node: Redis, Redis Cluster, NATS, Kafka, RabbitMQ, Pulsar, Google Pub/Sub or Apache Iggy.
adapter.driver = "nats" - 03
Deliver to every socket
Each node pushes to its local subscribers, applying tag filters and delta compression per connection before bytes hit the wire.
sockudo:message - 04
Recover what was missed
A phone drops into a tunnel. On reconnect, Sockudo replays the gap from the hot buffer or durable history — or fails closed when continuity can’t be proven.
recover { serial: 1042 }
Everything after “connected”
Pusher gets bytes to sockets. Sockudo’s native protocol adds the semantics product teams end up rebuilding by hand — gated, so V1 clients never see them.
Recovery, rewind & durable history
Two-tier recovery from a hot replay buffer and durable history, with opaque cursors and gapless until_attach reads.
Mutable messages
Create, update, delete and append with full version history.
Presence + history
First-join / last-leave correct across nodes and multi-tab users.
Delta compression
Send only what changed between consecutive messages.
Tag filtering
Subscribers declare filters; the server drops what they don’t need.
Annotations
Reactions, receipts and moderation with summary projection.
Push notifications
FCM, APNs, Web Push, HMS and WNS — plus Apple Live Activities — from the same publish.
Operable by default
Prometheus metrics, webhooks, rate limits, quotas, readiness probes and a Grafana dashboard.
Two protocols, one server
V1 stays byte-for-byte Pusher. V2 adds serials, message IDs and sockudo: events.
LLM streams that survive reality.
Built on the same durable primitives as everything else — versioned messages, history, recovery, presence and push — instead of a fragile side-channel. Works with the Vercel AI SDK, OpenAI and Anthropic.
Scale on the bus you already run.
Add nodes behind any load balancer. Sockudo coordinates fanout, presence and continuity through a pluggable adapter — no sticky-session gymnastics, no proprietary broker.
- Ready for Kubernetes with a Helm chart and readiness probes
- Duplicate suppression and continuity checks across nodes
- App managers on MySQL, PostgreSQL, DynamoDB, ScyllaDB or SurrealDB
Subscribe anywhere.
Publish from anything.
Six realtime clients and ten server SDKs, all living in one monorepo and tested against the same server.
import Sockudo from "@sockudo/client";
const client = new Sockudo("app-key", { wsHost: "realtime.example.com", protocolVersion: 2,});
client .subscribe("orders") .bind("order.created", (order) => render(order));import SockudoSwift
let channel = client.subscribe("public-updates")channel.bind("price-updated") { data, _ in Task { @MainActor in viewModel.latestPrice = String(describing: data) }}
client.connect()import Pusher from "pusher-js";
const pusher = new Pusher("app-key", { wsHost: "realtime.example.com", cluster: "local", forceTLS: true,});
pusher.subscribe("orders").bind("order.created", console.log);import Sockudo from "sockudo";
const sockudo = new Sockudo({ appId, key, secret, host: "realtime.example.com" });
await sockudo.trigger("orders", "order.created", { id: "ord_123" }, { idempotency_key: "order-created-ord_123",});from sockudo_http_python import TriggerOptions
sockudo.trigger( "orders", "order.created", {"id": "ord_123"}, TriggerOptions(idempotency_key="order-created-ord_123"),)<?php$sockudo->trigger('orders', 'order.created', ['id' => 'ord_123'], [ 'idempotency_key' => 'order-created-ord_123',]);let channels = vec![Channel::from_string("orders")?];let params = TriggerParams::builder() .idempotency_key("order-created-ord_123") .build();
sockudo .trigger(&channels, "order.created", json!({ "id": "ord_123" }), Some(params)) .await?;Compatible today. Native tomorrow.
pusher:sockudo:serial + message_id—✓Ship realtime tonight.
One binary. Your infrastructure. Your data. Start with Docker in under a minute.