# Connection: meta property

> The meta read-only property of the Connection interface is the meta claim of the token the connection was opened with.

The **`meta`** read-only property of the [`Connection`](/docs/room/connection) interface is the `meta` claim of the token the connection was opened with.

## Value

The claim's value, typed `unknown`, or `null` when there's none.

## Description

`meta` is what your backend put in the player's token, such as a display name, a team or a cosmetic. Check its shape before using it.

A `name` string of at most 64 characters in `meta` becomes the player's [presence](/docs/room/presence) name when it joins.

## Examples

### Putting a player on the team its token names

```ts
// teams.ts
import { defineRoom } from "@irtio/room";

export default defineRoom({
  onJoin(room, connection) {
    const meta = connection.meta as { team?: unknown } | null;
    connection.data.team = meta?.team === "red" ? "red" : "blue";
    room.send(connection, { type: "team", team: connection.data.team });
  },
});
```

## See also

- [`Connection.player`](/docs/room/connection/player)
- [`PresenceEntry`](/docs/room/presence-entry)
