# `Skeg.Server`

What the connected server is and can do. Every function takes `:timeout`
in ms as an option.

# `capabilities`

```elixir
@spec capabilities(Skeg.conn(), keyword()) ::
  {:ok, Skeg.Server.Capabilities.t()} | {:error, Skeg.Error.t()}
```

# `has_feature?`

```elixir
@spec has_feature?(Skeg.Server.Capabilities.t(), String.t()) :: boolean()
```

Whether `capabilities` lists `feature`.

# `ping`

```elixir
@spec ping(Skeg.conn(), keyword()) :: :ok | {:error, Skeg.Error.t()}
```

Checks that the server answers.

# `whoami`

```elixir
@spec whoami(Skeg.conn(), keyword()) ::
  {:ok, %{tenant: String.t(), mode: String.t()}} | {:error, Skeg.Error.t()}
```

The tenant this connection acts as, and its access mode.

---

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