### Get a Single Channel Connection Source: https://hexdocs.pm/conn_grpc/0.3.1/overview.html Retrieve the single persistent channel connection using `get/0` from a module defined with `ConnGRPC.Channel`. ```elixir {:ok, channel} = DemoChannel.get() ``` -------------------------------- ### Get a Channel from the Pool Source: https://hexdocs.pm/conn_grpc/0.3.1/overview.html Retrieve a channel connection from a `ConnGRPC.Pool` using `get_channel/0`. Channels are distributed using round-robin. ```elixir {:ok, channel} = DemoPool.get_channel() ``` -------------------------------- ### Define a Channel Pool Module Source: https://hexdocs.pm/conn_grpc/0.3.1/overview.html Define a module using `ConnGRPC.Pool` to manage a pool of persistent gRPC channels. Configure the pool size and channel connection details. ```elixir defmodule DemoPool do use ConnGRPC.Pool, pool_size: 5, channel: [address: "localhost:50051", opts: []] end ``` -------------------------------- ### Define a Single Channel Module Source: https://hexdocs.pm/conn_grpc/0.3.1/overview.html Define a module using `ConnGRPC.Channel` for a single persistent gRPC channel. Specify the address and any connection options. ```elixir defmodule DemoChannel do use ConnGRPC.Channel, address: "localhost:50051", opts: [] end ``` -------------------------------- ### Add ConnGRPC to Dependencies Source: https://hexdocs.pm/conn_grpc/0.3.1/overview.html Add ConnGRPC and gRPC Elixir to your project's dependencies in `mix.exs`. Ensure you are using compatible versions. ```elixir def deps do [ {:conn_grpc, "~> 0.1"}, # You also need to have gRPC Elixir installed {:grpc, "~> 0.5"} ] end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.