yggdrasil v3.2.2 Yggdrasil.Distributor.Backend View Source
Distributor backend to subscribe, unsubscribe and publish messages. Uses
Phoenix.PubSub
for message distribution.
Published messages comes in the form of {:Y_EVENT, Channel.t(), term()}
.
Link to this section Summary
Link to this section Functions
Link to this function
publish(channel, message)
View Source
publish(Yggdrasil.Channel.t, term) :: :ok | {:error, term}
Publishes a message
in a channel
.
Link to this function
subscribe(channel)
View Source
subscribe(Yggdrasil.Channel.t) :: :ok | {:error, term}
Subscribes to a channel
.
Link to this function
unsubscribe(channel)
View Source
unsubscribe(Yggdrasil.Channel.t) :: :ok | {:error, term}
Unsubscribes from a channel
.