Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

RealtimeTokenAdapter

Interface: RealtimeTokenAdapter

Defined in: realtime/types.ts

Adapter interface for generating provider-specific tokens. Implemented by openaiRealtimeToken() and elevenlabsRealtimeToken().

Properties

provider

ts
provider: string;

Provider identifier (e.g., 'openai', 'elevenlabs').

Methods

generateToken()

ts
generateToken(): Promise<RealtimeToken>;

Generate an ephemeral token for client use.

Returns

Promise<RealtimeToken>