brook v0.1.1 Brook.Dispatcher.Default

Default implementation for the Brook.Dispatcher Creates and joins a process group named :brook_servers. Ensures all members of the process group receive notification of the received event by a member of the group.

Link to this section Summary

Functions

Takes an event struct and forwards the event on to other member nodes of the :brook_servers process group after tagging the forwarded status of the event to true.

Creates and joins the Brook server to the process group named :brook_servers.

Link to this section Functions

Link to this function

dispatch(event)
dispatch(Brook.Event.t()) :: [:ok]

Takes an event struct and forwards the event on to other member nodes of the :brook_servers process group after tagging the forwarded status of the event to true.

Link to this function

init()
init() :: :ok | {:error, term()}

Creates and joins the Brook server to the process group named :brook_servers.