Skip to content

Commit b4ec4f3

Browse files
authored
Update manage-calls-web.md
1 parent c1ef7c0 commit b4ec4f3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

articles/communication-services/how-tos/calling-sdk/includes/manage-calls/manage-calls-web.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,3 +376,20 @@ Check is screen sharing is on. It returns `Boolean`.
376376
```js
377377
const isScreenSharingOn = call.isScreenSharingOn;
378378
```
379+
380+
## Hang up
381+
382+
There are two ways how you can hang up the call. You can leave the call and keep other participants in the call or terminate the call for all participants. If you want to leave the call, then just use
383+
384+
```js
385+
call.hangUp();
386+
```
387+
388+
You can also end the call for all participants if you provide `HangUpOptions`.
389+
390+
> [!NOTE]
391+
> This API is not available in rooms.
392+
393+
```js
394+
call.hangUp( forEveryone: true);
395+
```

0 commit comments

Comments
 (0)