Skip to content

@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

ts
Infinity

Defined in

core/connection/Connection.ts:39


baseReconnectDelay

Optional baseReconnectDelay: number

Base reconnection delay in milliseconds

Default

ts
1000

Defined in

core/connection/Connection.ts:45


maxReconnectDelay

Optional maxReconnectDelay: number

Maximum reconnection delay in milliseconds

Default

ts
30000

Defined in

core/connection/Connection.ts:51


logger

Optional logger: Logger

Logger instance (optional) If not provided, uses globalLogger

Defined in

core/connection/Connection.ts:57

Released under the MIT License.