grych / drab

Remote controlled frontend framework for Phoenix.

Home Page:https://tg.pl/drab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

defhandler with guards and without catchall raises

grych opened this issue · comments

defhandler update_mini(socket, _sender, argument) when is_float(argument) do
defhandler update_mini(socket, _sender, argument) when is_integer(argument) do

raises update_mini must be declared as public in the commander

adding catchall make it working properly.

See https://elixirforum.com/t/dynamic-subscriptions-on-server-events/15557