CallsApp
Source:
src/Cloudflare/Calls/App.ts
A Cloudflare Realtime (formerly “Calls”) SFU application.
An app is the unit of isolation for Cloudflare’s WebRTC SFU: clients
connect to sessions scoped to the app’s auto-assigned appId, and your
backend authenticates management calls with the create-only secret
(a bearer token). The only configurable property is the human-readable
name, which is mutable in place.
Creating an App
Section titled “Creating an App”App with a generated name
const app = yield* Cloudflare.CallsApp("realtime", {});App with an explicit name
const app = yield* Cloudflare.CallsApp("realtime", { name: "my-realtime-app",});Using the credentials
Section titled “Using the credentials”// appId is public — it appears in client session URLs:const appId = app.appId;
// The secret is redacted — use it server-side as a bearer token// against https://rtc.live.cloudflare.com/v1/apps/{appId}/...const secret = app.secret; // Redacted<string>