***

title: disconnect
slug: /reference/typescript/relay/call/disconnect
description: Disconnect (unbridge) a connected call.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[connect]: /docs/server-sdks/reference/typescript/relay/call/connect

Disconnect a previously bridged call, breaking the connection between the two
call legs. Both parties return to their respective RELAY applications for
further processing. Use this after
[`connect()`][connect] to separate
bridged calls.

## **Parameters**

None.

## **Returns**

`Promise<Record<string, unknown>>` -- Server response confirming the disconnect.

## **Example**

```typescript {18}
import { RelayClient } from '@signalwire/sdk';

const client = new RelayClient({
  project: process.env.SIGNALWIRE_PROJECT_ID!,
  token: process.env.SIGNALWIRE_TOKEN!,
  contexts: ['default']
});

client.onCall(async (call) => {
  await call.answer();

  // Bridge to an agent
  await call.connect([
    [{ type: 'phone', params: { to_number: '+15551234567', from_number: '+15559876543' } }],
  ]);

  // Disconnect (unbridge) the connected call
  const result = await call.disconnect();
  console.log(`Disconnected: ${JSON.stringify(result)}`);

  await call.play([{ type: 'tts', text: 'The other party has disconnected.' }]);
  await call.hangup();
});

await client.run();
```