# `Chatto.Discovery.V1.ServerDiscoveryService`
[🔗](https://github.com/xtian/elixir-chatto/blob/v0.1.0/lib/chatto/generated/chatto_discovery_v1_server_discovery_service.ex#L3)

Provides unauthenticated server discovery metadata.

# `get_server`

```elixir
@spec get_server(Req.Request.t(), Chatto.Discovery.V1.GetServerRequest.t()) ::
  {:ok, Chatto.Discovery.V1.GetServerResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Returns public server metadata, branding, registration status, and login
provider information. This fully public RPC is available before login so
clients can render the first server screen and authentication choices.

# `list_features`

```elixir
@spec list_features(Req.Request.t(), Chatto.Discovery.V1.ListFeaturesRequest.t()) ::
  {:ok, Chatto.Discovery.V1.ListFeaturesResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Lists product features without requiring a session. Clients may load this
catalog on demand and cache it by server software version, locale, and
version filter. Refresh when any of those values change. Older servers
can return UNIMPLEMENTED; this does not prevent normal chat use.

# `list_neighborhood_servers`

```elixir
@spec list_neighborhood_servers(
  Req.Request.t(),
  Chatto.Discovery.V1.ListNeighborhoodServersRequest.t()
) ::
  {:ok, Chatto.Discovery.V1.ListNeighborhoodServersResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Returns the Neighborhood without requiring a session. The server
contacts other servers in the background and caches the result. A call
does not contact other servers, so a client can show the Neighborhood
without revealing the user's network address to those servers. The
server refreshes the Neighborhood at least once per hour and soon after
its Neighbors change.

# `list_neighbors`

```elixir
@spec list_neighbors(Req.Request.t(), Chatto.Discovery.V1.ListNeighborsRequest.t()) ::
  {:ok, Chatto.Discovery.V1.ListNeighborsResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Returns the public Neighbor directory without requiring a session.

---

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