Networking · interface

DecodedMessage

What a decoded message turned out to be. kind 0 means it did not decode.

Explained in Networking and rollback.

interface DecodedMessage
import type { DecodedMessage } from '@driftengine/network';

Properties

NameTypeDescription
kindnumber
participantnumber
ticknumber
payloadAtnumberWhere the payloads start, and how long each one is. Zero when there is none.
payloadBytesnumber
countnumberHow many consecutive ticks this message carries, starting at tick. One for everything else.
digeststringThe sixteen-hex-character digest, for a fingerprint message; empty otherwise.