Documentation / @agentick/client / WSTransportConfig
Interface: WSTransportConfig
Defined in: client/src/ws-transport.ts:18
Properties
baseUrl
baseUrl:
string
Defined in: client/src/ws-transport.ts:20
Base URL for the server (http:// or ws://)
clientId?
optionalclientId:string
Defined in: client/src/ws-transport.ts:23
Client ID to use for connection
headers?
optionalheaders:Record<string,string>
Defined in: client/src/ws-transport.ts:29
Custom headers (passed to WebSocket implementations that support them)
reconnect?
optionalreconnect:object
Defined in: client/src/ws-transport.ts:41
Reconnection settings
delay?
optionaldelay:number
Delay between attempts in ms (default: 1000)
enabled?
optionalenabled:boolean
Enable auto-reconnection (default: true)
maxAttempts?
optionalmaxAttempts:number
Max reconnection attempts (default: 5)
timeout?
optionaltimeout:number
Defined in: client/src/ws-transport.ts:32
Request timeout in ms (default: 30000)
token?
optionaltoken:string
Defined in: client/src/ws-transport.ts:26
Authentication token
WebSocket()?
optionalWebSocket: (url,protocols?) =>WebSocket
Defined in: client/src/ws-transport.ts:38
WebSocket implementation (for Node.js compatibility)
Parameters
url
string | URL
protocols?
string | string[] | WebSocketInit
Returns
WebSocket
withCredentials?
optionalwithCredentials:boolean
Defined in: client/src/ws-transport.ts:35
Send credentials with requests