Class Protocol<I>

Source
Expand description

The protocol the provider runs.

The webxdc update log is the source of truth. The realtime channel is an optional accelerator with its own strategy and codec.

Constructors§

Source§

new Protocol<I extends Item>(
    config: {
        realtime?: {
            codecs: WebxdcUpdateItemCodec<I>[];
            strategies: SyncStrategy<I>[];
        };
        webxdcUpdate: {
            codecs: WebxdcUpdateItemCodec<I>[];
            strategies: SyncStrategy<I>[];
        };
    },
): Protocol<I>

Properties§

§readonly realtime?: { ... }
§readonly webxdcUpdate: { ... }