> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GameMessage (JSON)

> GameMessage (JSON)

# GameMessage (JSON)

用于定义游戏会话消息队列中消息数据的 JSON 对象。

GameMessage JSON 对象具有以下规范。

| 成员 | 类型 | 说明 |
| - | - | - |
| data | 8 位无符号整数数组 | 游戏客户端希望发送给其他游戏客户端的 Base64 编码数据。此值对服务器是不透明的。 |
| senderXuid | 64 位无符号整数 | 发送消息的玩家的 XBOX 用户 ID。 |
| sequenceNumber | 32 位有符号整数 | 游戏消息的序列号。此值由服务器分配。序列号保证单调递增,但可能不连续。序列号在消息队列内是唯一的,但在不同的消息队列之间不唯一。 |
| queueIndex | 32 位有符号整数 | 消息所在会话消息队列的索引。可能的值为 0-3。 |
| timeStamp | DateTime | 服务器在队列中创建游戏消息的时间,采用 UTC。 |

## JSON 语法示例

```json theme={null}
{
    "queueIndex": 0,
    "sequenceNumber": 5,
    "senderXuid": 65536,
    "timestamp": "2011-06-23T18:49:50Z",
    "data": null
}
    
```

## 另请参阅

##### 父主题

[JavaScript 对象表示法 (JSON) 对象参考](/zh-CN/reference/live/rest/json/atoc-xboxlivews-reference-json)

##### 参考

[GameSession (JSON)](/zh-CN/reference/live/rest/json/json-gamesession)


## Related topics

- [Xbox Game Package Manager](/build/core-features/common/packaging/xgpm.md)
- [Real-time messages for Lobby and Matchmaking APIs](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchUser/overview.md)
- [XBOX Game Package Manager](/fr/build/core-features/common/packaging/xgpm.md)
- [Unlink Game Center Account](/services/playfab/api-references/rest/client/account-management/unlink-game-center-account.md)
- [Crafting Game Part 3 - Coding](/services/playfab/economy-monetization/economy-v2/tutorials/craftingGame/crafting-game-coding.md)
