*** id: 0b250afc-29c1-4df3-a22c-8225fefa7974 title: lock slug: /node/reference/video/room-session/lock description: lock method for the RoomSession class. max-toc-depth: 3 ---------------- ### lock * **lock**(`params`): `Promise` Locks the room. This prevents new participants from joining the room. #### Returns `Promise` #### Example ```js await roomSession.lock(); ```