For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
ReferenceGuidesClick-to-Call
ReferenceGuidesClick-to-Call
  • Core
    • Overview
  • SignalWire Client
    • Overview
    • Notifications
    • Client
    • Utility functions
  • Video
    • Overview
    • LocalOverlay
    • RoomSession
      • Events
        • addCamera
        • addDevice
        • addMicrophone
        • audioMute
        • audioUnmute
        • createScreenShareObject
        • deaf
        • deleteMemberMeta
        • deleteMeta
        • demote
        • destroy
        • getLayouts
        • getMemberMeta
        • getMembers
        • getMeta
        • getPlaybacks
        • getRecordings
        • getStreams
        • hangupAll
        • hideVideoMuted
        • join
        • leave
        • lock
        • off
        • on
        • once
        • play
        • promote
        • removeAllListeners
        • removeAllMembers
        • removeMember
        • sendDigits
        • setHideVideoMuted
        • setInputSensitivity
        • setInputVolume
        • setLayout
        • setLocalStream
        • setMemberMeta
        • setMemberPosition
        • setMeta
        • setOutputVolume
        • setPositions
        • setPrioritizeHandraise
        • setRaisedHand
        • showVideoMuted
        • startRecording
        • startScreenShare
        • startStream
        • undeaf
        • unlock
        • updateCamera
        • updateMemberMeta
        • updateMeta
        • updateMicrophone
        • updateSpeaker
        • videoMute
        • videoUnmute
    • RoomSessionDevice
    • RoomSessionPlayback
    • RoomSessionRecording
    • RoomSessionScreenShare
    • RoomSessionStream
    • RoomDevice
    • RoomScreenShare
  • Chat
    • Overview
    • Client
    • ChatMember
    • ChatMemberEntity
    • ChatMessage
    • ChatMessageEntity
  • PubSub
    • Overview
    • Client
    • PubSubMessage
  • WebRTC
    • Overview
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • hangupAll
VideoRoomSessionMethods

hangupAll

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

hideVideoMuted

Next
Built with

hangupAll

  • hangupAll(): Promise<void>

Hangs up the active calls in the RoomSession and will send a REJECT_ALL message to the rejected participant(s).

REJECT_ALL message

When a participant is rejected, the causeCode will be 825 and the cause will be REJECT_ALL. Below is an example of the JSON response when a participant is rejected:

1{
2 "jsonrpc": "2.0",
3 "id": "cbcbe519-39db-4585-9a89-f0e1fdf036e9",
4 "result": {
5 "node_id": "105f2e4f-69a7-4907-bc01-36399fe34bdd@west-us",
6 "result": {
7 "jsonrpc": "2.0",
8 "id": "f4a9c207-e1de-49bb-98bf-e8f4b243c4e0",
9 "result": {
10 "callID": "fc456094-6f0e-44b5-8209-7a474cac7ef7",
11 "message": "CALL ENDED",
12 "causeCode": 825,
13 "cause": "REJECT_ALL"
14 }
15 },
16 "code": "200"
17 }
18}

Returns

Promise<void>

Example

1await roomSession.hangupAll();