Interface SyncNode<ID>

A sync protocol node.

Remarks

Each sync protocol participant may have zero or more nodes.

interface SyncNode<ID> {
    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.

Type declaration

    • (): void
    • Returns void

Remarks

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

seqNum: number

Current sequence number.

Remarks

It can be increased, but cannot be decreased.