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

Interface Upstream

tracker/src/upstream.ts:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22export interface Upstream {
23 start(): void;
24 stop(): void;
25 isConnected(): boolean;
26 getConfig(): Config;
27 getAircraft(): Aircraft[];
28 find(hex: string): Aircraft | undefined;
29 /** Patch the shared config on the server (persisted there). */
30 patchConfig(patch: Partial<Config>): void;
31}
32
33export class WsUpstream implements Upstream {
34 private ws: WebSocket | null = null;

Callers 38

makeDriverFunction · 0.65
swapDriverFunction · 0.65
mainFunction · 0.65
constructorMethod · 0.65
onMessageMethod · 0.65
useMseFunction · 0.65
swapDriverFunction · 0.65
shutdownFunction · 0.65
constructorMethod · 0.65
onMessageMethod · 0.65

Implementers 2

WsUpstreamtracker/src/upstream.ts
ReplayUpstreamtracker/src/upstream.ts

Calls

no outgoing calls

Tested by

no test coverage detected