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

# SharedSessionResponse real-time messages type

> SharedSessionResponse type returned by PlayFab real-time messages AddEntityToSession and RemoveEntityFromSession, reporting entity count, status, and traceId.

> [!NOTE]
>
> The REST and SignalR APIs documented here are more complex than the client SDKs. Consider using the [Lobby C++ SDK](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md) or [Matchmaking C++ SDK](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md) instead, unless those SDKs don't meet your needs.

```json theme={null}
{
    "entityCount": "2",
    "status": "Success",
    "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
```

## Members

**`entityCount`**   number *optional*

The number of entities currently in the shared session. This number can't exceed
`8`.

Example: `2`

**`status`**   string

The status of the response. See all [possible ResponseStatus values here](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/response-status.md).

Example: `Success`

**`traceId`**   string

A [W3C TraceContext trace-id](https://www.w3.org/TR/trace-context/#trace-id).
The client should log this field so it can be included if you need to send a bug
report to the PlayFab team.

Example: `4bf92f3577b34da6a3ce929d0e0e4736`

## See also

* Type [SharedSessionRequest](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/shared-session-request.md)
* Server method [AddEntityToSession](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/server-methods/add-entity-to-session.md)
* Server method
  [RemoveEntityFromSession](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/server-methods/remove-entity-from-session.md)
* [Real-time messages SignalR Hub](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/signalr-hub.md)
* [Real-time messages for Lobby and Matchmaking APIs](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/overview.md)


## Related topics

- [SharedSessionRequest real-time messages type](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/shared-session-request.md)
- [EndSessionResponse real-time messages type](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/end-session-response.md)
- [StartOrRecoverSessionResponse real-time messages type](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/start-or-recover-session-response.md)
- [EndSessionRequest real-time messages type](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/end-session-request.md)
- [StartOrRecoverSessionRequest real-time messages type](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/start-or-recover-session-request.md)
