Skip to content

@egain/ai-agent-sdk API Reference - v0.1.1 / ConnectionEvents

Interface: ConnectionEvents

Connection event map

Table of contents

Properties

Properties

connected

connected: Object

Type declaration

NameType
timestampnumber

Defined in

core/connection/Connection.ts:13


message

message: Object

Type declaration

NameType
dataany
timestampnumber

Defined in

core/connection/Connection.ts:14


error

error: Object

Type declaration

NameType
errorError
timestampnumber

Defined in

core/connection/Connection.ts:15


closed

closed: Object

Type declaration

NameType
code?number
reason?string
timestampnumber

Defined in

core/connection/Connection.ts:16


stateChanged

stateChanged: Object

Type declaration

NameType
stateConnectionState
previousStateConnectionState

Defined in

core/connection/Connection.ts:17

Released under the MIT License.