Skip to content

@tavora/sdk / connect

Function: connect() ​

connect(options?): Promise<TavoraSDK>

Defined in: packages/sdk/src/index.ts:803

Connects to the Tavora host. Safe to call more than once: every call returns the same connection for this window. Rejects with a TavoraError (HOST_UNAVAILABLE, INCOMPATIBLE) if the module cannot run here.

In a test, mountPanel from @tavora/sdk/testing hands the panel it starts a memory host here instead.

Parameters ​

options? ​

ConnectOptions = {}

Returns ​

Promise<TavoraSDK>

For Tavora 0.24.58 and @tavora/sdk 0.3.20. Code under the MIT License. The Tavora name and logo are not covered by it.