A single entry point to every LiveKit server API, exposing each service through a property, e.g. api.room.createRoom(...).
api.room.createRoom(...)
const api = new LiveKitAPI({ apiKey, secret }); // or new LiveKitAPI() to read from envawait api.room.createRoom({ name: 'my-room' }); Copy
const api = new LiveKitAPI({ apiKey, secret }); // or new LiveKitAPI() to read from envawait api.room.createRoom({ name: 'my-room' });
server host, credentials, and client options; each value falls back to its environment variable when omitted.
A single entry point to every LiveKit server API, exposing each service through a property, e.g.
api.room.createRoom(...).Example