stop
Stop the fax operation.
Returns
Promise<Record<string, unknown>> — Server acknowledgment.
Stop the fax operation.
Promise<Record<string, unknown>> — Server acknowledgment.
1 import { RelayClient } from '@signalwire/sdk'; 2 3 const client = new RelayClient({ 4 project: process.env.SIGNALWIRE_PROJECT_ID!, 5 token: process.env.SIGNALWIRE_API_TOKEN!, 6 contexts: ['default'] 7 }); 8 9 client.onCall(async (call) => { 10 await call.answer(); 11 const action = await call.sendFax('https://example.com/invoice.pdf', { 12 identity: '+15559876543', 13 }); 14 15 // Stop the fax operation 16 await action.stop(); 17 }); 18 19 await client.run();