# Connection: protocol property

> The protocol read-only property of the Connection interface is the version of the client protocol the connection speaks.

The **`protocol`** read-only property of the [`Connection`](/docs/room/connection) interface is the version of the client protocol the connection speaks, which depends on the version of `@irtio/client` the player runs.

## Value

A whole number.

## Description

Some features need a newer client:

- [`rtt`](/docs/room/connection/rtt) needs protocol 3 or later; it's `undefined` before that.
- [`room.handoff()`](/docs/room/room/handoff) needs protocol 4 or later for every player it moves, and rejects otherwise.

A room can check `protocol` to tell a player with an old client to update before it needs one of these.

## Examples

### Asking an old client to update

```ts
// update-check.ts
import { defineRoom } from "@irtio/room";

export default defineRoom({
  onJoin(room, connection) {
    if (connection.protocol < 4) room.send(connection, { type: "update-needed" });
  },
});
```

## See also

- [`Room.handoff()`](/docs/room/room/handoff)
