***

title: leaveRoom
slug: /reference/typescript/relay/call/leave-room
description: Leave a video/audio room.
max-toc-depth: 3
---------------------

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

Leave the current room.

## **Parameters**

## **Returns**

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

## **Example**

```typescript {16}
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();

  // Join a room
  await call.joinRoom('meeting-room-1');

  // Later, leave the room
  await call.leaveRoom();
  await call.hangup();
});

await client.run();
```