# Connection

TypeScript source: `constants/connection.ts`

## Types

### DAIResponse

Source: `constants/connection.ts:5`

Standard response envelope returned by DepthAI backend service calls.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `data` | `T` | Service-specific response payload. |
| `error` | `Error | string | null` | Error object or message returned by the backend, or `null` for successful responses. |
| `message` | `string | null` | Optional human-readable response message. |
| `status` | `number` | Numeric response status returned by the service. |

## Constants

### DAI_SERVICE_NAME

Source: `constants/connection.ts:27`

```ts
{ deleteStereoCalibration: string; fullPipelineSchema: string; getApplicationSettings: string; getCalibrationById: string; getCalibrationQuality: string; getDefaultTopics: string; ... }
```

Canonical DepthAI backend service names used by the viewer connection layer.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `deleteStereoCalibration` | `string` |  |
| `fullPipelineSchema` | `string` |  |
| `getApplicationSettings` | `string` |  |
| `getCalibrationById` | `string` |  |
| `getCalibrationQuality` | `string` |  |
| `getDefaultTopics` | `string` |  |
| `getDeviceOptions` | `string` |  |
| `getDevices` | `string` |  |
| `getDummyData` | `string` |  |
| `getFpsRange` | `string` |  |
| `getIMUReportRates` | `string` |  |
| `getIr` | `string` |  |
| `getLogs` | `string` |  |
| `getNeuralDepthConfig` | `string` |  |
| `getNeuralDepthModel` | `string` |  |
| `getNeuralNetworkConfiguration` | `string` |  |
| `getNeuralNetworkInfo` | `string` |  |
| `getNeuralNetworks` | `string` |  |
| `getPipelinePresets` | `string` |  |
| `getSensors` | `string` |  |
| `getStereoCalibrations` | `string` |  |
| `getStereoDepthCalibration` | `string` |  |
| `getStereoDepthPreset` | `string` |  |
| `getStereoDepthRVC2` | `string` |  |
| `getStereoDepthRVC4` | `string` |  |
| `getTofConfiguration` | `string` |  |
| `keyPressed` | `string` |  |
| `measureBandwidth` | `string` |  |
| `pipelineSchema` | `string` |  |
| `pipelineState` | `string` |  |
| `recalibrate` | `string` |  |
| `reportFps` | `string` |  |
| `revertStereoDepthCalibration` | `string` |  |
| `setIr` | `string` |  |
| `setNeuralDepthConfig` | `string` |  |
| `setNeuralDepthModel` | `string` |  |
| `setNeuralNetwork` | `string` |  |
| `setNeuralNetworkConfiguration` | `string` |  |
| `setPipelinePreset` | `string` |  |
| `setPointCloud` | `string` |  |
| `setSensors` | `string` |  |
| `setStereoDepthCalibration` | `string` |  |
| `setStereoDepthPreset` | `string` |  |
| `setStereoDepthRVC2` | `string` |  |
| `setStereoDepthRVC4` | `string` |  |
| `setTelemetry` | `string` |  |
| `setThermal` | `string` |  |
| `setTofConfiguration` | `string` |  |
| `setUserId` | `string` |  |
| `startDevice` | `string` |  |
| `stopDevice` | `string` |  |
| `swapStereoDepthCalibration` | `string` |  |
| `topicGroups` | `string` |  |

### DEFAULT_ICE_SERVERS

Source: `constants/connection.ts:103`

```ts
RTCIceServer[]
```

Fallback STUN servers used when no Luxonis ICE server configuration is available.

### ICE_SERVERS_API_ENDPOINT

Source: `constants/connection.ts:97`

```ts
"https://signal.cloud-stg.luxonis.com/api/v1/turn-credentials"
```

API endpoint used to request Luxonis TURN server credentials.

### SIGNALING_SERVER_URL

Source: `constants/connection.ts:92`

```ts
"wss://signal.cloud.luxonis.com/session/"
```

Default Luxonis signaling server used for WebRTC sessions.
