@egain/ai-agent-sdk API Reference - v0.1.1 / ConnectionConfig
Interface: ConnectionConfig
Connection configuration options
Table of contents
Properties
Properties
transport
• Optional transport: Transport
The transport instance to use for communication. If not provided, a WebSocketTransport will be created using the endpoint.
Defined in
core/connection/Connection.ts:28
endpoint
• Optional endpoint: string
WebSocket endpoint URL (used when transport is not provided)
Defined in
core/connection/Connection.ts:33
maxReconnectAttempts
• Optional maxReconnectAttempts: number
Maximum reconnection attempts
Default
InfinityDefined in
core/connection/Connection.ts:39
baseReconnectDelay
• Optional baseReconnectDelay: number
Base reconnection delay in milliseconds
Default
1000Defined in
core/connection/Connection.ts:45
maxReconnectDelay
• Optional maxReconnectDelay: number
Maximum reconnection delay in milliseconds
Default
30000Defined in
core/connection/Connection.ts:51
logger
• Optional logger: Logger
Logger instance (optional) If not provided, uses globalLogger