MCPcopy
hub / github.com/cpaczek/skylight / onSnapshot

Method onSnapshot

tracker/src/loop.ts:194–198  ·  view source on GitHub ↗
(now: number, aircraft: Aircraft[])

Source from the content-addressed store, hash-verified

192 // --- events from upstream / UI ---
193
194 onSnapshot(now: number, aircraft: Aircraft[]): void {
195 for (const ac of aircraft) this.history.observe(ac, now);
196 this.history.prune(now);
197 this.recorder.write("snapshot", { aircraft });
198 }
199
200 onConfig(config: Config): void {
201 this.rescheduleTick();

Callers 4

mainFunction · 0.95
onMessageMethod · 0.80
startMethod · 0.80
tickMethod · 0.80

Calls 3

writeMethod · 0.80
observeMethod · 0.45
pruneMethod · 0.45

Tested by

no test coverage detected