# `Gemini.Types.Live.GoAway`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.15.0/lib/gemini/types/live/go_away.ex#L1)

Notice from the server that the connection will soon be terminated.

When received, clients should prepare to disconnect and optionally
use session resumption to continue the session on a new connection.

## Fields

- `time_left` - Duration string indicating remaining time before termination

## Example

    %GoAway{time_left: "30s"}

# `t`

```elixir
@type t() :: %Gemini.Types.Live.GoAway{time_left: String.t() | nil}
```

# `from_api`

```elixir
@spec from_api(map() | nil) :: t() | nil
```

Parses from API response.

# `new`

```elixir
@spec new(keyword()) :: t()
```

Creates a new GoAway message.

# `to_api`

```elixir
@spec to_api(t() | nil) :: map() | nil
```

Converts to API format (camelCase).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
