> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md) または [Matchmaking C++ SDK](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md) の使用をご検討ください。

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

```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) を参照してください。

## パラメーター

[**`SubscriptionChangeMessage`**](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/real-time-messages/types/subscription-change-message)

## 関連項目

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


## Related topics

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