API reference / @evolu/common / local-first/Protocol / ProtocolMessageBuffer
Interface: ProtocolMessageBuffer
Defined in: packages/common/src/local-first/Protocol.ts:555
Mutable builder for constructing ProtocolMessage respecting size limits.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
addMessage | readonly | (message) => void | packages/common/src/local-first/Protocol.ts:558 |
addRange | readonly | (range) => void | packages/common/src/local-first/Protocol.ts:567 |
canAddMessage | readonly | (message) => boolean | packages/common/src/local-first/Protocol.ts:556 |
canAddTimestampsRangeAndMessage | readonly | (timestamps, message) => boolean | packages/common/src/local-first/Protocol.ts:562 |
canSplitRange | readonly | () => boolean | packages/common/src/local-first/Protocol.ts:560 |
getSize | readonly | () => number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"Positive"> | packages/common/src/local-first/Protocol.ts:572 |
unwrap | readonly | () => ProtocolMessage | packages/common/src/local-first/Protocol.ts:571 |