Skip to content

MeshObservations

Defined in: src/model/meshObservations.ts:37

new MeshObservations(): MeshObservations;

MeshObservations

clear(): void;

Defined in: src/model/meshObservations.ts:90

void


consumeMatching(channelHash, hashCount): MeshObservation[];

Defined in: src/model/meshObservations.ts:59

Return (and remove) every observation matching channelHash and hashCount. When multiple distinct messages match (different payloadFingerprint), only the freshest fingerprint’s group is returned — that’s the cluster that most likely produced the channel msg the caller just received.

ParameterType
channelHashnumber
hashCountnumber

MeshObservation[]


record(obs): void;

Defined in: src/model/meshObservations.ts:49

ParameterType
obsMeshObservation

void


size(): number;

Defined in: src/model/meshObservations.ts:86

number