Interface SyncProtocol<ID>

A sync protocol participant.

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

Type Parameters

  • ID = any

Hierarchy

Implemented by

Properties

Properties

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

Retrieve or create a node.

close: () => void

Stop the protocol operation.

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

Retrieve a node.