RelayCall

leave_room

View as MarkdownOpen in Claude

Leave the current room.

Parameters

Returns

dict — Server response confirming the leave.

Example

from signalwire.relay import RelayClient
client = RelayClient(
project="your-project-id",
token="your-api-token",
contexts=["default"],
)
@client.on_call
async def handle_call(call):
await call.answer()
# Join a room
await call.join_room("meeting-room-1")
# Later, leave the room
await call.leave_room()
await call.hangup()
client.run()