Skip to content

ShapeGroupOptions

Defined in: packages/client/src/circuits/shape-group.ts:24

optional fetch?: typeof fetch

Defined in: packages/client/src/circuits/shape-group.ts:29


optional live?: boolean

Defined in: packages/client/src/circuits/shape-group.ts:28


optional onStreamEnd?: (shape, error) => void

Defined in: packages/client/src/circuits/shape-group.ts:39

One shape’s read ENDED — null for a normal end, an error for a read that died mid-session.

Forwarded straight from readShapeStream’s onEnd, and never fired for a stream this group closed itself: unsubscribeAll is the caller’s own instruction, not a condition to recover from. See readShapeStream for why a consumer that ignores this goes permanently quiet instead of failing.

string

Error | null

void


optional onTokenRejected?: (status) => string | Promise<string | null> | null

Defined in: packages/client/src/circuits/shape-group.ts:27

number

string | Promise<string | null> | null


shapes: Record<string, GroupShapeSpec>

Defined in: packages/client/src/circuits/shape-group.ts:25


optional signal?: AbortSignal

Defined in: packages/client/src/circuits/shape-group.ts:30


token: () => string | Promise<string>

Defined in: packages/client/src/circuits/shape-group.ts:26

string | Promise<string>