NODEDC_DESIGN_GUIDELINE/server/map-live-data-slot.mjs

12 lines
417 B
JavaScript

const MAP_LIVE_DATA_SLOT_KINDS = new Set(["entity-stream", "zone-stream"]);
/**
* Map runtime bindings may only target slots that deliver canonical live
* entity facts. Point entities and zones have distinct template slots, but
* share the same provider-neutral snapshot/patch transport contract.
*/
export function isMapLiveDataSlot(slot) {
return Boolean(slot && MAP_LIVE_DATA_SLOT_KINDS.has(slot.kind));
}