#
UserInReqData
Parameter | Required | Type | Description |
---|---|---|---|
code | Yes | string | The code corresponding to the user UID. |
room_id | Yes | string | Room ID |
mode | Yes | int32 | Mode Default: 1 |
language | No | string | Language Default: zh-CN |
seat_index | No | int32 | The game position (seat number) to join. Pass -1 to indicate joining randomly. Start from 0 and cannot be greater than the number of seats. Default is 0. |
is_seat_random | No | bool | Default is false. Valid when seat_index is present. If the game position (seat number) is already occupied, whether to randomly assign an empty seat to sit. is_seat_random=true randomly assign empty seats to sit is_seat_random=false do not randomly assign |
team_id | No | int32 | For games that do not support teams: fill in the value of 1; for games that support teams: fill in the value of 1 or 2 (two teams) |
is_ready | No | bool | Whether to prepare Default: false false: not ready true: ready |
Request Example
{
"event": "user_in",
"mg_id": "mg_id_1",
"timestamp": "1657770493152",
"data": {
"code": "code_1",
"room_id":"roomId_1",
"mode": 1,
"language":"zh-CN",
"seat_index": -1,
"is_seat_random": false,
"team_id": 1,
"is_ready": false
}
}