# RoomClient: presence property

> The presence read-only property of the RoomClient interface lists who is in the room.

The **`presence`** read-only property of the [`RoomClient`](/docs/client/room-client) interface is the room's [`PresenceList`](/docs/client/presence-list): every player in the room, with their name, status and whether they're connected.

## Value

A `PresenceList`. It's empty until [`ready`](/docs/client/room-client/ready) resolves, and the same list is kept across reconnects.

## Description

The presence list has every player in the room, whatever the room's interest sends the client, including players whose connection closed in the last 10 seconds. Its events fire after the entity callbacks of the same state update, before the [`update` event](/docs/client/room-client/update-event). A reconnect doesn't fire [`leave`](/docs/client/presence-list/leave-event) and [`join`](/docs/client/presence-list/join-event) for players who stayed.

The player sets its own status with [`presence.setStatus()`](/docs/client/presence-list/setstatus). The room sets each player's name.

## Examples

### Showing who is typing

Each player sets a status while typing in the chat, and every client shows who is.

```ts
// typing.ts
import { connect } from "@irtio/client";

const room = await connect("main");

export function onInput(text: string) {
  room.presence.setStatus({ typing: text.length > 0 });
}

room.presence.addEventListener("change", ({ entry, changed }) => {
  if (!changed.includes("status") || entry.player === room.player) return;
  const typing = (entry.status as { typing?: boolean } | null)?.typing === true;
  console.log(typing ? `${entry.name} is typing` : `${entry.name} stopped typing`);
});
```

## See also

- [`PresenceList`](/docs/client/presence-list)
- [`Room.presence`](/docs/room/room/presence), the room's side
- [Presence](/docs/room/guides/presence)
