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

# ReceiveSubscriptionChangeMessage SignalR クライアント メソッド

> サブスクライブまたはサブスクリプション解除のリクエストが完了した際に PlayFab Lobby およびマッチメイキング クライアントに通知する ReceiveSubscriptionChangeMessage SignalR クライアント メソッドです。

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

[SubscriptionChangeMessage](/services/playfab/multiplayer/real-time-messages/types/subscription-change-message) を受信し、クライアントが自身の [サブスクリプション](/services/playfab/multiplayer/real-time-messages/subscribing-to-resources) 状態の変化を把握できるようにします。このメッセージは、サブスクライブまたはサブスクリプション解除のリクエストの処理が完了したことを示します。まれに、サービスがサブスクリプションの更新に失敗し、クライアントがこのメッセージを受信できないケースが発生することがあります。このため、クライアントはタイマーを実装し、このメソッドが 5 秒以内に [SubscriptionChangeMessage](/services/playfab/multiplayer/real-time-messages/types/subscription-change-message) を受信しない場合はサブスクリプション呼び出しを再試行できるようにする必要があります。このタイマー ベースの再試行は、以後の試行で指数バックオフを用いて数回実行できます。

```text theme={null}
ReceiveSubscriptionChangeMessage(SubscriptionChangeMessage subscriptionChangeMessage)
```

<Tip>
  これは SignalR のクライアント メソッドです。サーバーから呼び出される SignalR クライアントでクライアント メソッドを公開する方法については、[クライアント メソッドの公開に関するドキュメント](https://learn.microsoft.com/en-us/aspnet/core/signalr/dotnet-client#call-client-methods-from-hub) を参照してください。
</Tip>

## パラメーター

[**`SubscriptionChangeMessage`**](/services/playfab/multiplayer/real-time-messages/types/subscription-change-message)

## 関連項目

* 型 [SubscriptionChangeMessage](/services/playfab/multiplayer/real-time-messages/types/subscription-change-message)
* クライアント メソッド [ReceiveMessage](/services/playfab/multiplayer/real-time-messages/client-methods/receive-message)
* [Real-time messages SignalR Hub](/services/playfab/multiplayer/real-time-messages/signalr-hub)
* [Lobby およびマッチメイキング API のリアルタイム メッセージ](/services/playfab/multiplayer/real-time-messages/overview)


## Related topics

- [ReceiveMessage SignalR クライアント メソッド](/ja-jp/services/playfab/multiplayer/real-time-messages/client-methods/receive-message.md)
- [リアルタイム メッセージ SignalR Hub](/ja-jp/services/playfab/multiplayer/real-time-messages/signalr-hub.md)
- [SubscriptionChangeMessage リアルタイム メッセージ型](/ja-jp/services/playfab/multiplayer/real-time-messages/types/subscription-change-message.md)
- [StartOrRecoverSession SignalR サーバー メソッド](/ja-jp/services/playfab/multiplayer/real-time-messages/server-methods/start-or-recover-session.md)
- [EndSession SignalR サーバー メソッド](/ja-jp/services/playfab/multiplayer/real-time-messages/server-methods/end-session.md)
