Skip to content

PostMessageTransportOptions

Defined in: src/web/postMessageTransport.ts:12

Options for creating a PostMessageTransport.

optional closeOnEstablishTimeout?: boolean

Defined in: src/web/postMessageTransport.ts:63

Close the signer window if the heartbeat handshake times out.

true

optional closeOnPendingTimeout?: boolean

Defined in: src/web/postMessageTransport.ts:68

Close the signer window if it stays in “pending” status too long.

true

optional crypto?: Pick<Crypto, "randomUUID">

Defined in: src/web/postMessageTransport.ts:51

Source of random UUIDs for heartbeat request IDs.

globalThis.crypto

optional detectNonClickEstablishment?: boolean

Defined in: src/web/postMessageTransport.ts:75

Detect and reject attempts to open the signer window outside a click handler. Browsers like Safari block popups opened without user interaction.

true

optional disconnectTimeout?: number

Defined in: src/web/postMessageTransport.ts:41

Time in milliseconds without a heartbeat response after which the channel is considered disconnected.

2000

optional establishTimeout?: number

Defined in: src/web/postMessageTransport.ts:29

Time in milliseconds to wait for the ICRC-29 heartbeat handshake to complete.

120000

optional manageFocus?: boolean

Defined in: src/web/postMessageTransport.ts:58

Manage focus between the relying party and signer windows. When true, the signer window is focused on send and the relying party window is focused on close.

true

optional pendingTimeout?: number

Defined in: src/web/postMessageTransport.ts:35

Time in milliseconds the channel can remain in “pending” status before the connection is considered failed.

300000

optional statusPollingRate?: number

Defined in: src/web/postMessageTransport.ts:46

Interval in milliseconds between ICRC-29 heartbeat status polls.

300

url: string

Defined in: src/web/postMessageTransport.ts:14

The signer’s RPC URL. Must be a secure context (HTTPS, localhost, or 127.0.0.1).


optional window?: Window

Defined in: src/web/postMessageTransport.ts:24

The relying party window, used to listen for incoming postMessage events.

globalThis.window

optional windowOpenerFeatures?: string

Defined in: src/web/postMessageTransport.ts:19

Window features string passed to window.open().

"toolbar=0,location=0,menubar=0,width=500,height=500,left=100,top=100"