From 17f48fb932facbdcc45068afd2db6036ac2ec94d Mon Sep 17 00:00:00 2001 From: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com> Date: Sun, 27 Sep 2026 20:38:55 -0400 Subject: [PATCH] chore(types): mirror ws opt-in fields from the server (#91) --- src/types/ws.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/types/ws.ts b/src/types/ws.ts index d2cbc3b..eafdced 100644 --- a/src/types/ws.ts +++ b/src/types/ws.ts @@ -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;