chore(types): mirror ws opt-in fields from the server (#91)

This commit is contained in:
MrAlders0n
2026-09-27 20:38:55 -04:00
committed by GitHub
parent 54b5093ac0
commit 17f48fb932
+6
View File
@@ -35,6 +35,9 @@ export interface WsConfigured {
type: "configured";
id: string;
resolvePath: boolean;
// echoed by servers that support these opt-ins; we never set them
includeObserverKey?: boolean;
includeRepeats?: boolean;
}
export interface WsPacketObservation {
@@ -52,10 +55,13 @@ export interface WsPacketObservation {
observationCount: number;
scope?: string; // matched transport scope name; omitted when none matched
summary?: string;
// later hearing over a new path, only sent to configure{includeRepeats}; observationCount is 0
isRepeat?: boolean;
};
observation: {
observerId: string;
observerName: string;
observerPublicKey?: string; // only with configure{includeObserverKey}
iata: string;
heardAt: number;
rssi: number;