roulette v1.0.1 Roulette.NatsClient

Link to this section Summary

Link to this section Types

Link to this type message()
message() :: %{topic: String.t(), body: String.t(), reply_to: String.t()}

Link to this section Functions

Link to this function child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function pub(pid, topic, message, opts \\ [])
pub(GenServer.server(), String.t(), binary(), keyword()) :: :ok
Link to this function receive_additional_tcp_data(socket, packets, n)
Link to this function request(pid, topic, body, opts \\ [])
request(GenServer.server(), String.t(), binary(), keyword()) ::
  {:ok, message()} |
  {:error, :timeout}
Link to this function start_link(connection_settings \\ %{}, opts \\ [])
start_link(map(), keyword()) :: GenServer.on_start()
Link to this function stop(pid)
stop(GenServer.server()) :: :ok
Link to this function sub(pid, subscriber, topic, opts \\ [])
sub(GenServer.server(), pid(), String.t(), keyword()) :: {:ok, non_neg_integer()}
Link to this function unsub(pid, sid, opts \\ [])
unsub(GenServer.server(), non_neg_integer(), keyword()) :: :ok