Skip to content

@egain/ai-agent-sdk API Reference - v0.3.2 / WebSocketTransportConfig

Interface: WebSocketTransportConfig ​

WebSocket transport configuration

Hierarchy ​

Table of contents ​

Properties ​

Properties ​

endpoint ​

• endpoint: string

Connection endpoint URL

Inherited from ​

TransportConfig.endpoint

Defined in ​

core/connection/Transport.ts:37


connectionTimeout ​

• Optional connectionTimeout: number

Connection timeout in milliseconds

Default

ts
10000

Inherited from ​

TransportConfig.connectionTimeout

Defined in ​

core/connection/Transport.ts:43


logger ​

• Optional logger: Logger

Logger instance (optional) If not provided, uses globalLogger

Inherited from ​

TransportConfig.logger

Defined in ​

core/connection/Transport.ts:49


protocols ​

• Optional protocols: string | string[]

WebSocket protocols (optional)

Defined in ​

core/connection/WebSocketTransport.ts:11

Released under the MIT License.