Skip to main content

Interface: Connection

Defined in: packages/client/src/connection.ts:42

Properties​

canManage​

canManage: boolean

Defined in: packages/client/src/connection.ts:56

Whether manage() does anything for this provider.


chooseInstead​

chooseInstead: (providerId) => void

Defined in: packages/client/src/connection.ts:52

The visitor picked another AI for this page (downloads it if needed). Call it from a click.

Parameters​

providerId​

string

Returns​

void


connect​

connect: () => void

Defined in: packages/client/src/connection.ts:46

Ask the visitor to allow this site. Call it from a click: it may open a window.

Returns​

void


disconnect​

disconnect: () => void

Defined in: packages/client/src/connection.ts:48

Forget this site's connection in this browser.

Returns​

void


getState​

getState: () => ConnectionState

Defined in: packages/client/src/connection.ts:43

Returns​

ConnectionState


manage​

manage: () => void

Defined in: packages/client/src/connection.ts:54

Open the visitor's settings for this site (their AI and model), when the provider has them. Call it from a click.

Returns​

void


retry​

retry: () => Promise<void>

Defined in: packages/client/src/connection.ts:50

Look again, e.g. after the visitor started Leuria.

Returns​

Promise<void>


subscribe​

subscribe: (listener) => () => void

Defined in: packages/client/src/connection.ts:44

Parameters​

listener​

() => void

Returns​

() => void