> ## Documentation Index
> Fetch the complete documentation index at: https://generaltranslation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ConnectionsClient

connections 작업을 위한 Client

이 Client는 X API의 connections 엔드포인트와 상호 작용하기 위한 메서드를 제공합니다. 인증, 요청 포맷 구성, 응답
파싱을 포함해 connections 관련 모든 작업을 처리합니다.

<div id="constructors">
  ## 생성자
</div>

<div id="constructor">
  ### constructor
</div>

• **new ConnectionsClient**(`client`): [`ConnectionsClient`](/ko/xdks/typescript/reference/classes/ConnectionsClient)

새 `ConnectionsClient` 인스턴스를 생성합니다

<div id="parameters">
  #### 매개변수
</div>

| Name     | Type                                                     | Description          |
| :------- | :------------------------------------------------------- | :------------------- |
| `client` | [`Client`](/ko/xdks/typescript/reference/classes/Client) | 주요 X API Client 인스턴스 |

#### 반환

[`ConnectionsClient`](/ko/xdks/typescript/reference/classes/ConnectionsClient)

#### 정의 위치

[connections/client.ts:88](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/connections/client.ts#L88)

<div id="methods">
  ## 메서드
</div>

<div id="getconnectionhistory">
  ### getConnectionHistory
</div>

▸ **getConnectionHistory**(`options`): `Promise`\<`Response`>

연결 이력 가져오기\
인증된 App의 활성 및 과거 스트리밍 연결과 각 연결 해제 사유를 반환합니다.

<div id="parameters">
  #### 매개변수
</div>

| 이름        | type                                                                        |
| :-------- | :-------------------------------------------------------------------------- |
| `options` | `GetConnectionHistoryOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } |

#### 반환

`Promise`\<`Response`>

API 응답으로 해결되는 `Promise`. 단, `requestOptions.raw`가 `true`이면 원시 `Response` 객체를 반환합니다.

#### 정의 위치

[connections/client.ts:129](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/connections/client.ts#L129)

▸ **getConnectionHistory**(`options?`): `Promise`\<[`Get2ConnectionsResponse`](/ko/xdks/typescript/reference/interfaces/Schemas.Get2ConnectionsResponse)>

<div id="parameters">
  #### 매개변수
</div>

| 이름         | Type                          |
| :--------- | :---------------------------- |
| `options?` | `GetConnectionHistoryOptions` |

#### 반환값

`Promise`\<[`Get2ConnectionsResponse`](/ko/xdks/typescript/reference/interfaces/Schemas.Get2ConnectionsResponse)>

<div id="defined-in">
  #### 정의된 위치
</div>

[connections/client.ts:138](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/connections/client.ts#L138)

***

<div id="deleteall">
  ### deleteAll
</div>

▸ **deleteAll**(`options`): `Promise`\<`Response`>

모든 연결 종료
인증된 App의 모든 활성 스트리밍 연결을 종료합니다.

<div id="parameters">
  #### 매개변수
</div>

| 이름                           | type     |
| :--------------------------- | :------- |
| `options`                    | `Object` |
| `options.requestOptions`     | `Object` |
| `options.requestOptions.raw` | `true`   |

<div id="returns">
  #### Returns
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 Promise, 또는 requestOptions.raw가 true인 경우 원시 Response

#### 정의 위치

[connections/client.ts:318](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/connections/client.ts#L318)

▸ **deleteAll**(): `Promise`\<[`KillAllConnectionsResponse`](/ko/xdks/typescript/reference/interfaces/Schemas.KillAllConnectionsResponse)>

#### 반환값

`Promise`\<[`KillAllConnectionsResponse`](/ko/xdks/typescript/reference/interfaces/Schemas.KillAllConnectionsResponse)>

<div id="defined-in">
  #### 정의된 위치
</div>

[connections/client.ts:327](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/connections/client.ts#L327)
