Skip to content

Function: connectIntentSocket()

connectIntentSocket(url, format, factory?, meta?): Promise<IntentSocket>

Defined in: aiui-intent-runtime/src/protocol.ts:205

Connect to a channel server's /ws, complete the format hello, and resolve with a socket ready to send data frames. Rejects if the connection fails or the server refuses the format. meta (tab identity, source location) rides the hello envelope so the server can contextualize everything the connection sends.

Parameters

url

string

format

string

factory?

WebSocketFactory = defaultFactory

meta?

ClientMeta

Returns

Promise<IntentSocket>