Tradehub.Stream.subscribe

You're seeing just the function subscribe, go back to Tradehub.Stream module for more information.

Specs

subscribe(String.t()) :: :ok | {:error, reason :: any()}

The utility function to subscribe into the channel, and broadcast messages if any to the Tradehub.PubSub with a specific topic name.

Examples

iex> Tradehub.Stream.subscribe("market_stats")