Asks the host to join the subsession to help, host can decline or postpone the request for help.
Executed promise.
Assigns an unassigned participant to a subsession. Only available to the host.
User ID.
Subsession ID.
Executed promise.
Broadcasts content in the main session and all subsessions. Only available to the host.
Content to broadcast.
Executed promise.
Closes all the subsession. Only available to the host.
Executed promise
Creates subsessions.
Accepts the following parameters:
How to assign users to subsessions:
SubsessionAllocationPattern.Automatically: Distribute users evenly to each subsession.SubsessionAllocationPattern.Manually: The users will be assigned manually later. This is the default.Promise<Array<Subsession> | Error>
INVALID_OPERATION (Subsession has started!)INVALID_PARAMETERS (Exceed maximum size): maximum_size = 50; if support big subsessions plan, up to 100Gets the current subsession information.
Subsession ID.
Subsession name.
User status.
Gets the list of subsessions. If you are the host, will get all the subsessions. If you are the participant, will get the assigned subsession.
Note: The userId of each participant in userList is based on the main session.
User IDs are not shared across subsessions or between a subsession and the main session —
each session context assigns its own independent IDs. Because every participant has a join
record in the main session, the userId exposed here always refers to that main-session identity.
If you need to track a user across session contexts, use userGuid instead, as it remains
constant regardless of which session the user is in.
Get subsession options
Gets the status of the subsession.
Gets the unassigned list of users.
Gets the subsession status of the user.
Checks whether the subsessions are enabled.
Joins a subsession.
Subsession ID.
Executed promise.
Leaves the subsession.
Executed promise.
Move a participant back to the main session
User ID.
Executed promise
Moves a participant from one subsession to the specified subsession. Only available to the host.
User ID.
Subsession ID.
Executed promise.
Opens the created subsessions.
Subsession list required. Must include subsession ID and name.
Subsession option; Default options =
{
isAutoJoinSubsession: false,
isBackToMainSessionEnabled: true,
isTimerEnabled: false,
timerDuration: 1800,
isTimerAutoEnabled: false,
waitSeconds: 60,
}
Executed promise.
Postpones the request for help.
User ID of the user who requested help.
Executed promise.
Starts broadcast voice to subsessions
Executed promise
Stops broadcast voice to subsessions
Executed promise
The
SubsessionClientprovides methods that define subsession functionalities, such as create subsession, join subsession, and leave subsession.