> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VIClientSessionDelegate

Delegate that may be used to handle events for the connection to the Voximplant Cloud.

@objc protocol VIClientSessionDelegate

## Methods

### client(\_:didDisconnectWithReason:)

@objc func client(\_ client: [VIClient](/api-reference/iossdk/core/viclient), didDisconnectWithReason reason: [VIDisconnectReason](/api-reference/iossdk/core/vidisconnectreason))

Triggered if the connection to the Voximplant Cloud has been closed.

**Parameters**

**client** [VIClient](/api-reference/iossdk/core/viclient)

Client instance

**reason** [VIDisconnectReason](/api-reference/iossdk/core/vidisconnectreason)

Disconnect reason

### clientDidReconnect(\_:)

@objc optional func clientDidReconnect(\_ client: [VIClient](/api-reference/iossdk/core/viclient))

Triggered after the connection to the Voximplant Cloud has been established successfully after a reconnect.

**Parameters**

**client** [VIClient](/api-reference/iossdk/core/viclient)

Client instance

### clientDidStartReconnecting(\_:)

@objc optional func clientDidStartReconnecting(\_ client: [VIClient](/api-reference/iossdk/core/viclient))

Triggered if reconnection to the Voximplant Cloud is started.

**Parameters**

**client** [VIClient](/api-reference/iossdk/core/viclient)

Client instance