> ## 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.

# Lobby 和 Matchmaking API 的实时消息

> PlayFab Lobby 和 Matchmaking 实时消息概述,让游戏客户端通过持久 SignalR WebSocket 订阅以接收服务更新。

<Note>
  此处记录的 REST 和 SignalR API 比客户端 SDK 更复杂。除非这些 SDK 不能满足你的需求,否则请考虑使用 [Lobby C++ SDK](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members) 或 [Matchmaking C++ SDK](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)。
</Note>

[Lobby 和 Matchmaking 服务](/services/playfab/multiplayer/lobby/lobby-and-matchmaking)提供了实时消息功能,使各个游戏客户端可以订阅以接收来自这些服务的消息。游戏客户端通过持久的 [SignalR WebSocket 连接](https://learn.microsoft.com/en-us/aspnet/core/signalr/introduction)来订阅消息。要详细了解整体场景,请参阅 [Lobby 和 Matchmaking 实时消息的概念文档](/services/playfab/multiplayer/lobby/lobby-and-matchmaking-real-time-messages)。

要使用此功能,游戏客户端首先需要[实现连接到实时消息的 SignalR 中心的 SignalR 客户端](/services/playfab/multiplayer/real-time-messages/signalr-hub)。连接后,客户端可以[订阅它们希望接收消息的资源](/services/playfab/multiplayer/real-time-messages/subscribing-to-resources)。

## 另请参阅

* [实时消息 SignalR 中心](/services/playfab/multiplayer/real-time-messages/signalr-hub)
* [订阅资源](/services/playfab/multiplayer/real-time-messages/subscribing-to-resources)


## Related topics

- [Message 实时消息类型](/zh-CN/services/playfab/multiplayer/real-time-messages/types/message.md)
- [实时消息 SignalR 中心](/zh-CN/services/playfab/multiplayer/real-time-messages/signalr-hub.md)
- [订阅实时消息资源](/zh-CN/services/playfab/multiplayer/real-time-messages/subscribing-to-resources.md)
- [SubscriptionChangeMessage 实时消息类型](/zh-CN/services/playfab/multiplayer/real-time-messages/types/subscription-change-message.md)
- [EndSessionRequest 实时消息类型](/zh-CN/services/playfab/multiplayer/real-time-messages/types/end-session-request.md)
