Skip to content

Interface: PatchFrame ​

Defined in: protocol.ts:104

The state changed: only what differs from what this player last received.

Properties ​

PropertyTypeDescriptionDefined in
t"patch"Frame type.protocol.ts:106
seqnumberThe room's change counter after this change.protocol.ts:108
ticknumberTicks run so far. While the room is ticking, the tick that made the change.protocol.ts:110
from?numberOutside the simulation, the seq of the view this is a patch of. A client that holds any other has missed something: it must not apply the patch, and reconnects to be sent its whole view.protocol.ts:116
c?numberThe id of the latest command of this player's that the view now reflects: that one and every earlier one have been applied, and their ack frames follow. Present when the frame is the first to show a command of theirs.protocol.ts:123
pPatchApply it with applyPatch to the view you have.protocol.ts:125

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.