View Source SpawnSdk.Channel.Subscriber (spawn_sdk v2.0.0-RC3)

Subscriber is a helper module to subscribe Phoenix.PubSub channels

Summary

Types

channel()

@type channel() :: String.t()

opts()

@type opts() :: Keyword.t()

Functions

subscribe(channel, opts \\ [])

@spec subscribe(channel(), opts()) :: :ok | {:error, term()}

unsubscribe(channel)

@spec unsubscribe(channel()) :: :ok