live_beats/test/support/presence/client_mock.ex

18 lines
296 B
Elixir
Raw Normal View History

2021-12-13 18:33:13 +00:00
defmodule Phoenix.Presence.Client.Mock do
def init(_opts) do
{:ok, %{}}
end
def handle_join(_topic, _key, _meta, state) do
IO.inspect(:handle_join)
{:ok, state}
end
def handle_leave(_topic, _key, _meta, state) do
IO.inspect(:handle_leave)
{:ok, state}
end
end