Chatto.Discovery.V1.ServerDiscoveryService (chatto v0.1.0)

Copy Markdown View Source

Provides unauthenticated server discovery metadata.

Summary

Functions

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.

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.

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.

Returns the public Neighbor directory without requiring a session.

Functions

get_server(client, request)

@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(client, request)

@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(client, request)

@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(client, request)

@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.