Interface SyncProtocol<ID>

A sync protocol participant.

interface SyncProtocol<ID> {
    add: ((id) => SyncNode<ID>);
    close: (() => void);
    get: ((id) => undefined | SyncNode<ID>);
}

Type Parameters

  • ID = any

Hierarchy

Implemented by

Properties

Properties

add: ((id) => SyncNode<ID>)

Retrieve or create a node.

Type declaration

close: (() => void)

Stop the protocol operation.

Type declaration

    • (): void
    • Returns void

get: ((id) => undefined | SyncNode<ID>)

Retrieve a node.

Type declaration