Drab: remote controlled frontend framework for Phoenix

Thanks for the pointer.

from inspecting the code it looks like drab run_handler() looks straightforward, with three required parameters, with the handler_function having arity 2. But I am getting an error (see simple example below). Probably something simple so thought I would ask.

from mix.exs
{:drab, “~> 0.5.6”},

commander handler example:
def test_handler(_first, _second) do
IO.puts(“hello form test_handler”)
end

from browser console:
Drab.run_handler(“test_event_name”, “test_handler”, {“answer”: 42})

The error from server:
ERROR:
[error] Drab Handler failed with the following exception:
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Stream, Timex.Interval
(elixir) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir) lib/enum.ex:116: Enumerable.reduce/3
(elixir) lib/enum.ex:1832: Enum.reduce/3
(drab) lib/drab/core.ex:173: Drab.Core.normalize_params/1
(drab) lib/drab/core.ex:168: Drab.Core.transform_payload/2
(elixir) lib/enum.ex:1811: Enum.“-reduce/3-lists^foldl/2-0-”/3
(drab) lib/drab.ex:243: anonymous fn/6 in Drab.handle_event/6

Any advice appreciated. thanks.