RunicBridgeClient interface

Namespace @runic-artifex/views · @runic-artifex/views 0.7.0-preview.5

interface RunicBridgeClient

The host-neutral Bridge a host script installs as window.__runicBridge.

Methods

isConnected

isConnected(): boolean;

The host connection is authenticated.

call

call(name: string, ...args: unknown[]): Promise<string>;

Invokes a .NET route. Rejects when the transport fails.

onReconnect

onReconnect?(listener: () => void): () => void;

Calls listener after the connection is re-established without a page reload.