> ## Documentation Index
> Fetch the complete documentation index at: https://www.voiceflow.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors and recovery

> Reconnect a Voice client and resolve interrupted actions.

## Reconnect after an interruption

On reconnect, repeat `client.start` with the saved key and wait for `client.started`. Create a replacement session only if `newSessionRequired` is `true`. Resolve an interrupted action’s effects before resending it; `messageID` correlates events and is not an idempotency guarantee.

The [Socket.IO client API](https://socket.io/docs/v4/client-api/) defines `connect`, `disconnect` and `connect_error`. The sections below define Voiceflow’s application events.

## Session readiness after reconnecting

Wait for `client.started` before sending actions. When `newSessionRequired` is true, emit `session.create` and retain the replacement key. When it is false, the supplied session is ready. A network disconnect alone does not end the conversation.

### `error`

Reports a runtime error through the `error` event. Read `error` for the message; `code` is optional. Socket.IO connection errors arrive separately through `connect_error`.

<a id="payload-9" />

```ts title="error payload"
interface ErrorPayload {
  code?: string; // optional error code
  error: string; // error message
}
```

See the [connection and session events](/docs/api-reference/conversations-api/interact-socket#client-start) for their full payloads.
