Client SDKs

JavaScript & TypeScript Client SDK

Zero-dependency, browser and Node.js compatible client package for Combind Pusher.

Installation via pnpm

pnpm add @combind/pusher-client

Client Constructor & Configuration

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

const client = new Realtime({
  key: "pk_live_your_app_key",
  wsHost: "ws.yourdomain.com", // Defaults to window.location.hostname
  wsPort: 443,                 // Cluster port
  encrypted: true,             // Use wss:// (default true on HTTPS)
  activityTimeout: 120,        // Ping interval in seconds
  authEndpoint: "/v1/apps/auth/channel", // Channel auth URL
  authHeaders: {
    "Authorization": "Bearer your_user_session_token"
  }
});