UNPKG

@quartal/bridge-client

Version:

Universal client library for embedding applications with URL-configurable transport support (iframe, postMessage) and framework adapters for Angular and Vue

32 lines 1.07 kB
import { Bellhop } from 'bellhop-iframe'; import { BaseTransportAdapter } from './transport-adapter'; export interface IframeTransportConfig { iframeElement?: HTMLIFrameElement; debug?: boolean; trace?: boolean; } /** * Iframe transport adapter using Bellhop * Wraps existing Bellhop functionality in the new transport interface */ export declare class IframeTransport extends BaseTransportAdapter { private bellhop; private config; private quartalEventListenersSetup; constructor(config?: IframeTransportConfig); connect(target?: HTMLIFrameElement): Promise<void>; /** * Set up forwarding of all Quartal events from Bellhop */ private setupQuartalEventForwarding; disconnect(): Promise<void>; send(type: string, data: any): void; destroy(): void; getType(): string; /** * Get the underlying Bellhop instance (for legacy compatibility) * @deprecated Use the transport interface methods instead */ getBellhop(): Bellhop | null; } //# sourceMappingURL=iframe-transport.d.ts.map