Step-by-Step Setup

Quickstart Guide

Connect your application and broadcast your first realtime message in 3 simple steps.

1Install Client SDK

Install the zero-dependency client SDK via pnpm:

pnpm add @combind/pusher-client

2Connect and Subscribe (Frontend)

Instantiate the realtime connection and bind event listeners:

import { Realtime } from "@combind/pusher-client";

const client = new Realtime({
  key: "pk_live_your_app_key",
  wsHost: "ws.yourdomain.com",
});

const channel = client.subscribe("notifications");

channel.bind("new_alert", (data) => {
  console.log("Realtime event received:", data);
});

3Publish an Event (Backend)

Publish an event over HTTP to your cluster with HMAC authentication:

curl -X POST https://api.yourdomain.com/v1/apps/{app_id}/events \
  -H "Authorization: Bearer sk_live_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "notifications",
    "event": "new_alert",
    "data": {
      "message": "Deployment completed successfully!"
    }
  }'