Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/mod.browser.ts>WgpsMessenger

Exploring Willow in the most efficient and sound programming language
Go to Latest
class WgpsMessenger
import { WgpsMessenger } from "https://deno.land/x/willow@0.2.1/mod.browser.ts";

Coordinates an open-ended synchronisation session between two peers using the Willow General Purpose Sync Protocol.

Type Parameters

ReadCapability
Receiver
SyncSignature
ReceiverSecretKey
PsiGroup
PsiScalar
SubspaceCapability
SubspaceReceiver
SyncSubspaceSignature
SubspaceSecretKey
Prefingerprint
Fingerprint
AuthorisationToken
StaticToken
DynamicToken
NamespaceId
SubspaceId
PayloadDigest
AuthorisationOpts

Properties

private
aoiIntersectionFinder: AoiIntersectionFinder<NamespaceId, SubspaceId>
private
challengeHash: (bytes: Uint8Array) => Promise<Uint8Array>
private
closed: boolean
private
currentlyReceivedEntry: Entry<NamespaceId, SubspaceId, PayloadDigest>
private
currentlyReceivedOffset: bigint
private
currentlyReceivingEntries: { namespace: NamespaceId; range: Range3d<SubspaceId>; remaining: bigint; } | undefined
private
currentlySentEntry: Entry<NamespaceId, SubspaceId, PayloadDigest>
private
handlesAoisOurs: HandleStore<AreaOfInterest<SubspaceId>>
private
handlesAoisTheirs: HandleStore<AreaOfInterest<SubspaceId>>
private
handlesCapsOurs: HandleStore<ReadCapability>
private
handlesCapsTheirs: HandleStore<ReadCapability>
private
handlesIntersectionsOurs: HandleStore<Intersection<PsiGroup>>
private
handlesIntersectionsTheirs: HandleStore<Intersection<PsiGroup>>
private
handlesPayloadRequestsOurs: HandleStore<{ offset: bigint; entry: Entry<NamespaceId, SubspaceId, PayloadDigest>; }>
private
handlesPayloadRequestsTheirs: HandleStore<{ offset: bigint; entry: Entry<NamespaceId, SubspaceId, PayloadDigest>; }>
private
handlesStaticTokensOurs: HandleStore<StaticToken>
private
handlesStaticTokensTheirs: HandleStore<StaticToken>
private
inChannelAreaOfInterest: FIFO<AreaOfInterestChannelMsg<SubspaceId>>
private
inChannelCapability: FIFO<CapabilityChannelMsg<ReadCapability, SyncSignature>>
private
inChannelIntersection: FIFO<IntersectionChannelMsg<PsiGroup>>
private
inChannelStaticToken: FIFO<StaticTokenChannelMsg<StaticToken>>
private
maxPayloadSizePower: number
private
nonce: Uint8Array
private
ourChallenge
private
outChannelAreaOfInterest: GuaranteedQueue
private
outChannelCapability: GuaranteedQueue
private
outChannelData: GuaranteedQueue
private
outChannelIntersection: GuaranteedQueue
private
outChannelPayloadRequest: GuaranteedQueue
private
outChannelReconciliation: GuaranteedQueue
private
outChannelStaticToken: GuaranteedQueue
private
theirChallenge
private
transport: ReadyTransport
private
yourRangeCounter: number

Methods