mirror of
https://github.com/MeshCore-Beacon/beacon-web.git
synced 2026-10-20 17:51:57 +00:00
chore(types): mirror ws opt-in fields from the server (#91)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user