IFrameTransport
IFrameTransport = {
destroy: () =>Promise<void>;listenerRequest:RpcClient<IFrameRpcSchema,LifecycleMessage>["listen"];request:RpcClient<IFrameRpcSchema,LifecycleMessage>["request"];waitForConnection:Promise<boolean>;waitForSetup:Promise<void>; }
Defined in: types/transport.ts:8
IFrame transport interface
Properties
Section titled “Properties”destroy
Section titled “destroy”destroy: () =>
Promise<void>
Defined in: types/transport.ts:28
Function used to destroy the iframe transport
Returns
Section titled “Returns”Promise<void>
listenerRequest
Section titled “listenerRequest”listenerRequest:
RpcClient<IFrameRpcSchema,LifecycleMessage>["listen"]
Defined in: types/transport.ts:24
Function used to listen to a request response via the iframe transport
request
Section titled “request”request:
RpcClient<IFrameRpcSchema,LifecycleMessage>["request"]
Defined in: types/transport.ts:20
Function used to perform a single request via the iframe transport
waitForConnection
Section titled “waitForConnection”waitForConnection:
Promise<boolean>
Defined in: types/transport.ts:12
Wait for the connection to be established
waitForSetup
Section titled “waitForSetup”waitForSetup:
Promise<void>
Defined in: types/transport.ts:16
Wait for the setup to be done