Fix UiWeb.Endpoint module not found in morse.

This commit is contained in:
Pim Kunis 2019-08-01 12:54:16 +02:00
parent 3432ef75b2
commit a2b21e300a
3 changed files with 21 additions and 2 deletions

View file

@ -37,6 +37,6 @@ defmodule Morse.Server do
end
defp broadcast_progress(progress) do
UiWeb.Endpoint.broadcast("morse:progress", "update", %{value: progress})
GenServer.cast(Ui.SocketAPI, {:broadcast_progress, progress})
end
end