Skip to content

Documentation / @agentick/client / SSETransportConfig

Interface: SSETransportConfig ​

Defined in: client/src/sse-transport.ts:22

Extends ​

Properties ​

baseUrl ​

baseUrl: string

Defined in: shared/src/transport.ts:110

Base URL for the server

Inherited from ​

TransportConfig.baseUrl


EventSource()? ​

optional EventSource: (url, init?) => EventSource

Defined in: client/src/sse-transport.ts:38

Custom EventSource constructor

Parameters ​

url ​

string | URL

init? ​

EventSourceInit

Returns ​

EventSource


fetch()? ​

optional fetch: (input, init?) => Promise<Response>

Defined in: client/src/sse-transport.ts:35

Custom fetch implementation

Parameters ​

input ​

string | URL | Request

init? ​

RequestInit

Returns ​

Promise<Response>


headers? ​

optional headers: Record<string, string>

Defined in: shared/src/transport.ts:116

Custom headers

Inherited from ​

TransportConfig.headers


paths? ​

optional paths: object

Defined in: client/src/sse-transport.ts:24

Override default endpoint paths

abort? ​

optional abort: string

channel? ​

optional channel: string

close? ​

optional close: string

events? ​

optional events: string

send? ​

optional send: string

subscribe? ​

optional subscribe: string

toolResponse? ​

optional toolResponse: string


reconnect? ​

optional reconnect: object

Defined in: client/src/sse-transport.ts:41

Reconnection settings

delay? ​

optional delay: number

Base delay between attempts in ms (default: 1000)

enabled? ​

optional enabled: boolean

Enable auto-reconnection (default: true)

maxAttempts? ​

optional maxAttempts: number

Max reconnection attempts (default: 5)


timeout? ​

optional timeout: number

Defined in: shared/src/transport.ts:119

Request timeout in ms

Inherited from ​

TransportConfig.timeout


token? ​

optional token: string

Defined in: shared/src/transport.ts:113

Authentication token

Inherited from ​

TransportConfig.token


withCredentials? ​

optional withCredentials: boolean

Defined in: shared/src/transport.ts:122

Send credentials with requests

Inherited from ​

TransportConfig.withCredentials

Released under the ISC License.