Elixir MOM v0.5.3 MOM.Channel.Base
Default implementation of channel protocol as a GenServer.
An implementation may be as simple as:
defmodule MyChannel do
using MOM.Channel.Base
def send(channel, msg) do
# ...
end
end
init, subscribe and unsubscribe are base implemented. Default channels are GenServer s.
Check Channel.Broadcast for a complete implementation.