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

# 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](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members) or [Matchmaking C++ SDK](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members) instead, unless those SDKs don't meet your needs.
</Note>

```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](/services/playfab/multiplayer/real-time-messages/types/response-status).

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](/services/playfab/multiplayer/real-time-messages/types/shared-session-request)
* Server method [AddEntityToSession](/services/playfab/multiplayer/real-time-messages/server-methods/add-entity-to-session)
* Server method
  [RemoveEntityFromSession](/services/playfab/multiplayer/real-time-messages/server-methods/remove-entity-from-session)
* [Real-time messages SignalR Hub](/services/playfab/multiplayer/real-time-messages/signalr-hub)
* [Real-time messages for Lobby and Matchmaking APIs](/services/playfab/multiplayer/real-time-messages/overview)


## Related topics

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