obby-client for TypeScript
    Preparing search index...

    Type Alias MessageKey

    Where a message is ordered and how it is found again.

    Ordering is by the server's timestamp, with a monotonic sequence number breaking ties. A tie broken by arrival order alone is what the reference client relies on, and it only holds there because of an incidental property of the sort it uses.

    type MessageKey = {
        seq: number;
        time_ms: number;
    }
    Index
    seq: number

    Assigned in arrival order, unique for the life of the connection.

    time_ms: number

    Milliseconds since the epoch, from server-time when the server sent one.