Spear.Client.subscribe

You're seeing just the callback subscribe, go back to Spear.Client module for more information.
Link to this callback

subscribe(subscriber, stream_name)

View Source (since 0.1.0)

Specs

subscribe(
  subscriber :: pid() | GenServer.name(),
  stream_name :: String.t() | :all
) :: {:ok, reference()} | {:error, any()}

A wrapper around Spear.subscribe/3

Link to this callback

subscribe(subscriber, stream_name, opts)

View Source (since 0.1.0)

Specs

subscribe(
  subscriber :: pid() | GenServer.name(),
  stream_name :: String.t() | :all,
  opts :: Keyword.t()
) :: {:ok, reference()} | {:error, any()}

A wrapper around Spear.subscribe/4