Rxova
Skip to content

OpenerConnection

Type Parameter
In extends MessageMap
Out extends MessageMap
R
readonly ready: Promise<void>;

Resolves once the opener acknowledges the ready handshake.

close(): void;

Tell the opener we’re going away, then close this window.

void


finish(result): void;

Deliver the terminal result to the opener. Does not close the window.

ParameterType
resultR

void


on<K>(type, handler): () => void;
Type Parameter
K extends string
ParameterType
typeK
handler(payload) => void

() => void


post<K>(type, payload): void;

Queued until the handshake completes.

Type Parameter
K extends string
ParameterType
typeK
payloadOut[K]

void