Interface SyncNode<ID>

A sync protocol node.

Each sync protocol participant may have zero or more nodes.

interface SyncNode<ID = any> {
    id: ID;
    remove: () => void;
    seqNum: number;
}

Type Parameters

  • ID = any

    Node identifier type, typically number or Name.

Properties

Properties

id: ID

Node identifier.

remove: () => void

Remove this node from participating in the sync protocol.

This may or may not have effect, depending on the sync protocol.

seqNum: number

Current sequence number.

It can be increased, but cannot be decreased.