stop
Stop media interception.
Returns
Promise<Record<string, unknown>> — Server acknowledgment.
Stop media interception.
Promise<Record<string, unknown>> — Server acknowledgment.
import { RelayClient } from '@signalwire/sdk';const client = new RelayClient({project: process.env.SIGNALWIRE_PROJECT_ID!,token: process.env.SIGNALWIRE_API_TOKEN!,contexts: ['default']});client.onCall(async (call) => {await call.answer();const action = await call.tap({ type: 'audio', params: { direction: 'both' } },{ type: 'ws', params: { uri: 'wss://example.com/tap' } },);// Stop the tap when doneawait action.stop();});await client.run();