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

# lock

> lock method for the RoomSession class.

### lock

* **lock**(`params`): `Promise<void>`

Locks the room. This prevents new participants from joining the room.

#### Returns

`Promise<void>`

#### Example

```js
await roomSession.lock();
```