Skip to content

Interface: OpenIntentThreadOptions

Defined in: aiui-intent-runtime/src/thread.ts:15

Properties

format

format: string

Defined in: aiui-intent-runtime/src/thread.ts:19

The wire stream format (the server must know it), e.g. intent-v1.


meta?

optional meta?: ClientMeta

Defined in: aiui-intent-runtime/src/thread.ts:21

Hello metadata (tab identity, actor, effective intent config…).


onSocket?

optional onSocket?: (socket) => void

Defined in: aiui-intent-runtime/src/thread.ts:29

Called with the RAW socket once connected, before the thread wrapper is returned — the place for connection-level listeners (error pushes carry no threadId and would be filtered by the wrapper's routing).

Parameters

socket

IntentSocket

Returns

void


url

url: string

Defined in: aiui-intent-runtime/src/thread.ts:17

The channel's websocket endpoint, e.g. ws://127.0.0.1:52424/ws.


webSocketFactory?

optional webSocketFactory?: WebSocketFactory

Defined in: aiui-intent-runtime/src/thread.ts:23

Test hook: replaces the global WebSocket.