View Source SpawnSdk.Channel.Subscriber (spawn_sdk v1.3.1)

Subscriber is a helper module to subscribe Phoenix.PubSub channels

Summary

Types

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

Functions

Link to this function

subscribe(channel, opts \\ [])

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