Fix UiWeb.Endpoint module not found in morse.
This commit is contained in:
parent
3432ef75b2
commit
a2b21e300a
3 changed files with 21 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue