Zum Hauptinhalt springen

Moderation

Module which contains logic to handle moderation based features.

Flow for joining a room with the waiting-room enabled:

Joining the room

JoinSuccess

When joining a room, the join_success control event contains the module-specific fields described below.

Fields

FieldTypeAlwaysDescription
raise_hands_enabledboolyesIf raise hands feature is enabled
waiting_room_enabledboolnoIf waiting room is enabled
waiting_room_participantsParticipant[]noA list of participants in the waiting room; see Participant
Example

For a moderator, the message would look like:

{
"waiting_room_enabled": true,
"waiting_room_participants": [
{
"id": "00000000-0000-0000-0000-000000000000",
"control": {
...
},
...
},
{
"id": "00000000-0000-0000-0000-000000000001",
"control": {
...
},
...
},
...
],
"raise_hands_enabled": true
}

For a non-moderator participant, the message would look like:

{
"raise_hands_enabled": true
}

Joined

When joining a room, the joined control event sent to all other participants does not contain module-specific data.

Commands

Kick

Requires moderator role.

Remove a participant from the room.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "kick"
targetstringyesId of the participant to kick
Example
{
"action": "kick",
"target": "00000000-0000-0000-0000-000000000000"
}

Ban

Requires moderator role.

Ban a user from the room. Can only be used on participants where participation_kind is "user". The user's user-id will be banned from the room for the remainder of the session.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "ban"
targetstringyesId of the participant to ban
Example
{
"action": "ban",
"target": "00000000-0000-0000-0000-000000000000"
}

SendToWaitingRoom

Requires moderator role.

Behaves like a Kick command and removes a participant from the room, but also implies that the frontend client should attempt to re-join the room to end up in the waiting room.

The frontend client should enable the waiting room with the EnableWaitingRoom command before sending this command.

Returns an Error with variant cannot_send_room_owner_to_waiting_room when the target is the room owner.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "send_to_waiting_room"
targetstringyesId of the participant to send to the waiting room
Example
{
"action": "send_to_waiting_room",
"target": "00000000-0000-0000-0000-000000000000"
}

Debrief

Starts a debriefing.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "debrief"
kick_scopeenumyesEither "guests", "users_and_guests" or "all"
Example
{
"action": "debrief",
"kick_scope": "guest"
}

ChangeDisplayName

Requires moderator role.

Change the display name of a guest or phone user for the duration of the meeting.

This will trigger a Control/Update message for the targeted participant and a DisplayNameChanged is sent to all participants.

Can return Error of kind cannot_change_name_of_registered_users when the targeted participant is not a guest or dial-in user or kind invalid_display_name when the new_name is empty or longer than 100 characters.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "change_display_name"
new_namestringyesThe new display name
targetstringyesThe id of the participant that gets their display name changed
Example
{
"action": "change_display_name",
"new_name": "Foo Bar",
"target": "00000000-0000-0000-0000-000000000000"
}

EnableWaitingRoom

Requires moderator role.

Enable the waiting room.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "enable_waiting_room"
Example
{
"action": "enable_waiting_room"
}


DisableWaitingRoom

Requires moderator role.

Disable the waiting room.

NOTE: Participants inside the waiting room will not be automatically accepted.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "disable_waiting_room"
Example
{
"action": "disable_waiting_room"
}


EnableRaisedHands

Requires moderator role.

Enable raising of hands by participants in the room.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "enable_raise_hands"
Example
{
"action": "enable_raise_hands"
}


DisableRaiseHands

Requires moderator role.

Disable raising of hands by participants in the room.

NOTE: Raised hands by participants will be lowered when this command is triggered.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "disable_raise_hands"
Example
{
"action": "disable_raise_hands"
}


Accept

Requires moderator role.

Accept a participant inside the waiting into the room.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "accept"
targetstringyesId of the participant to accept
Example
{
"action": "accept",
"target": "00000000-0000-0000-0000-000000000000"
}


ResetRaisedHands

Requires moderator role.

Reset the raised hands of participants in the room.

Fields

FieldTypeRequiredDescription
actionenumyesMust be "reset_raised_hands"
targetstring or string[]noId of one or more participants to reset the hand for. If missing, all participants in the room will have their raised hands reset.
Example

Reset the hands of all participants in the room:

{
"action": "reset_raised_hands"
}

Reset the hand of one specific participant:

{
"action": "reset_raised_hands",
"target": "00000000-0000-0000-0000-000000000000"
}

This message will not reset any hands, yet is still valid:

{
"action": "reset_raised_hands",
"target": []
}

The hand of one specific participant can also be reset in a list:

{
"action": "reset_raised_hands",
"target": ["00000000-0000-0000-0000-000000000000"]
}

Reset the hand of multiple participants:

{
"action": "reset_raised_hands",
"target": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-0000000a11c3",
"00000000-0000-0000-0000-000000000808",
]
}

Events

Kicked

Received by a participant if kicked from the room. Will be the last message before server-side websocket disconnection.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "kicked"
Example
{
"message": "kicked"
}

Banned

Received by a participant if banned from the room. Will be the last message before server-side websocket disconnection.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "banned"
Example
{
"message": "banned"
}

SentToWaitingRoom

Received by a participant if they were sent to the waiting room with the SendToWaitingRoom Command. The websocket connection will be kept open, but the participant state will be reset as if the participant just joined the waiting room.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "sent_to_waiting_room"
Example
{
"message": "sent_to_waiting_room"
}

SessionEnded

Received by a participant if removed from the room (e.g. due to debriefing). Will be the last message before server-side websocket disconnection.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "session_ended"
issued_bystringyesId of the issuing moderator

DebriefingStarted

Received when a debriefing has started that a participant is part of.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "debriefing_started"
issued_bystringyesId of the issuing moderator

In Waiting Room

Received after sending Join in a room which has the waiting-room enabled. Once in the waiting room one must wait until the Accepted event was received. Then the room can be entered using Control/EnterRoom.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "in_waiting_room"
Example
{
"message": "in_waiting_room",
}

JoinedWaitingRoom

Received when a participant joined the waiting-room. Wraps a Participant. Will only contain the data of the control as other modules will not be initialized before the user joins the room.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "joined_waiting_room"
Example
{
"message": "joined_waiting_room",
"id": "00000000-0000-0000-0000-000000000000",
"control": {
...
}
}

LeftWaitingRoom

Received when a participant left the waiting-room. Will also be received when a participant makes the transition from waiting-room to "conference-"room.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "left_waiting_room"
targetstringyesId of the participant
Example
{
"message": "joined_waiting_room",
"id": "00000000-0000-0000-0000-000000000000"
}

DisplayNameChanged

The display name of a guest participant was changed by a moderator (See ChangeDisplayName).

This message is received by all participants in the room.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "display_name_changed"
targetstringyesId of the targeted participant
issued_bystringyesThe issuer of the command
old_namestringyesThe old name of the targeted participant
new_namestringyesThe new name of the targeted participant
Example
{
"message": "display_name_changed",
"target": "00000000-0000-0000-0000-000000000000",
"issued_by": "00000000-0000-0000-0000-000000000000",
"old_name": "Alice",
"new_name": "Bob"
}

WaitingRoomEnabled

Received when a moderator enabled the waiting-room.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "waiting_room_enabled"
Example
{
"message": "waiting_room_enabled"
}

WaitingRoomDisabled

Received when a moderator disabled the waiting-room.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "waiting_room_disabled"
Example
{
"message": "waiting_room_disabled"
}

RaiseHandsEnabled

Received when a moderator enabled raising of hands.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "raise_hands_enabled"
issued_bystringyesId of the issuing moderator
Example
{
"message": "raise_hands_enabled",
"issued_by": "00000000-0000-0000-0000-000000000000"
}

RaiseHandsDisabled

Received when a moderator disabled raising of hands.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "raise_hands_disabled"
issued_bystringyesId of the issuing moderator
Example
{
"message": "raise_hands_disabled",
"issued_by": "00000000-0000-0000-0000-000000000000"
}

Accepted

Can only be received while in the waiting room. A moderator accepted this you into the room, which can now entered using Control/EnterRoom.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "accepted"
Example
{
"message": "accepted",

}

Error

Fields

FieldTypeAlwaysDescription
messageenumyesIs "error"
errorenumyesVariant of the error, see table below
ErrorDescription
cannot_ban_guestIssued when the Ban command targets a guest
cannot_send_room_owner_to_waiting_roomIssued when the SendToWaitingRoom command targets the room owner
cannot_change_name_of_registered_usersIssued when the ChangeDisplayName command targets a registered user
invalid_display_nameIssued when the ChangeDisplayName command contains an invalid display name
permission_deniedIssued when the sender of a command wasn't a moderator
Example
{
"message": "error",
"error": "cannot_ban_guest"
}

RaisedHandResetByModerator

Received when a moderator lowered the hand of the participant.

Fields

FieldTypeAlwaysDescription
messageenumyesIs "raised_hand_reset_by_moderator"
issued_bystringyesId of the issuing moderator
Example
{
"message": "raised_hand_reset_by_moderator",
"issued_by": "00000000-0000-0000-0000-000000000000"
}