live_beats/test/support/presence/client_mock.ex
2022-01-11 14:04:27 -05:00

15 lines
237 B
Elixir

defmodule Phoenix.Presence.Client.Mock do
def init(_opts) do
{:ok, %{}}
end
def handle_join(_topic, _key, _meta, state) do
{:ok, state}
end
def handle_leave(_topic, _key, _meta, state) do
{:ok, state}
end
end