[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Protocol](https://evolu.dev/docs/api-reference/common/local-first/Protocol) › ApplyProtocolMessageAsClientOptions

Defined in: [packages/common/src/local-first/Protocol.ts:1139](https://github.com/evoluhq/evolu/blob/113517df8a8da4e4eed41363077878e657b22fca/packages/common/src/local-first/Protocol.ts#L1139)

## Properties

<a id="onchangetoolarge"></a>

### onChangeTooLarge?

```ts
readonly optional onChangeTooLarge?: (error: ProtocolChangeTooLargeError) => void;
```

Defined in: [packages/common/src/local-first/Protocol.ts:1150](https://github.com/evoluhq/evolu/blob/113517df8a8da4e4eed41363077878e657b22fca/packages/common/src/local-first/Protocol.ts#L1150)

Called for each stored change that sync skipped as a
[ProtocolChangeTooLargeError](https://evolu.dev/docs/api-reference/common/local-first/Protocol/interfaces/ProtocolChangeTooLargeError). Without it, the error is logged with
`console.warn`. It must not throw, because a throw is a defect that aborts
the Run.

<a id="rangesmaxsize"></a>

### rangesMaxSize?

```ts
readonly optional rangesMaxSize?: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"Between3000-100000">;
```

Defined in: [packages/common/src/local-first/Protocol.ts:1142](https://github.com/evoluhq/evolu/blob/113517df8a8da4e4eed41363077878e657b22fca/packages/common/src/local-first/Protocol.ts#L1142)

---

<a id="version"></a>

### version?

```ts
readonly optional version?: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative">;
```

Defined in: [packages/common/src/local-first/Protocol.ts:1153](https://github.com/evoluhq/evolu/blob/113517df8a8da4e4eed41363077878e657b22fca/packages/common/src/local-first/Protocol.ts#L1153)

For tests only.

---

<a id="writekey"></a>

### writeKey?

```ts
readonly optional writeKey?: Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey">;
```

Defined in: [packages/common/src/local-first/Protocol.ts:1140](https://github.com/evoluhq/evolu/blob/113517df8a8da4e4eed41363077878e657b22fca/packages/common/src/local-first/Protocol.ts#L1140)