waitForBridge function

Module @runic-artifex/views in @runic-artifex/views 0.23.0

function waitForBridge(options?: WaitForBridgeOptions): Promise<RunicBridgeClient>;

Waits for the current instance's host Bridge (the installed __runicBridge on the page) to report a connection to .NET. Rejects with an unavailable BridgeError when no host installed window.__runicBridge, with a timeout BridgeError when it did not connect in time, with a failed BridgeError (and a protocol diagnostic) when the host implements Views protocol 3 or earlier, and with the abort reason when options.signal aborts first.