Server SDKs
Build AI agents, control calls, send messages, and more
Leave an audio conference.
The conference ID to leave.
Promise<Record<string, unknown>> — Server response confirming the leave.
Promise<Record<string, unknown>>
1import { RelayClient } from '@signalwire/sdk';23const client = new RelayClient({4 project: process.env.SIGNALWIRE_PROJECT_ID!,5 token: process.env.SIGNALWIRE_API_TOKEN!,6 contexts: ['default']7});89client.onCall(async (call) => {10 await call.answer();1112 // Join a conference13 const result = await call.joinConference('team-standup', { beep: 'onEnter' });1415 // Later, leave the conference16 await call.leaveConference(result.conference_id as string);17});1819await client.run();