Server Connection Settings
ChatTransportConfig - model for configuring SDK connection to edna servers.
Configuration
Connection settings are passed when creating ChatConfig:
let chatTransportConfig = ChatTransportConfig(
rest: "https://your-server.edna.ru/api",
webSocket: "wss://your-server.edna.ru/ws",
dataStore: "https://your-server.edna.ru/files"
)
let chatConfig = ChatConfig(transportConfig: chatTransportConfig)
Parameters
| Parameter | Type | Description |
|---|---|---|
rest | String | REST API base URL for requests (chat history, settings, sending messages) |
webSocket | String | WebSocket URL for real-time updates (new messages, typing indicators) |
dataStore | String | File storage URL (attachments, images, voice messages) |
Cloud Configuration
For edna cloud clients, a simplified constructor is available:
let chatTransportConfig = ChatTransportConfig(cloudHost: "your-company.edna.ru")
This automatically generates all necessary URLs based on cloud host.
On-Premise Configuration
For private server deployment, specify each URL explicitly:
let chatTransportConfig = ChatTransportConfig(
rest: "https://chat.your-domain.com/api",
webSocket: "wss://chat.your-domain.com/ws",
dataStore: "https://files.your-domain.com"
)
note
Connection data (URLs and providerUid) are provided during integration. For questions, contact support@edna.ru