Skip to main content
The Radion client takes a few options. Only apiKey is required.
OptionTypeDefaultDescription
apiKeystringRequired. Sent as the X-API-Key header.
baseUrlstringhttps://api.radion.appThe base URL for the Radion API.
wsUrlstringwss://api.radion.app/wsUse your own realtime endpoint.
const radion = new Radion({
  apiKey: process.env.RADION_API_KEY,
  // wsUrl: "wss://api.radion.app/ws",
  realtime: {
    reconnect: { initialDelayMs: 500, maxDelayMs: 30_000 },
    heartbeat: { intervalMs: 15_000, timeoutMs: 10_000 },
  },
});

Realtime tuning

To turn off reconnect or heartbeat, pass false (TypeScript) or False (Python). In Rust, build a RealtimeClient with RealtimeOptions and call .disable_reconnect() or .disable_heartbeat(). See Reconnect & heartbeats to learn how they work.
Last modified on July 5, 2026