add bubble timeline #100

Merged
floatingghost merged 4 commits from bubble-keikaku into develop 2022-07-22 14:55:38 +00:00
Showing only changes of commit f459a12a5a - Show all commits

View file

@ -64,6 +64,7 @@ def websocket_handle(:pong, state) do
# We only receive pings for now
def websocket_handle(:ping, state), do: {:ok, state}
def websocket_handle({:text, "ping"}, state) do
if state.timer, do: Process.cancel_timer(state.timer)
{:reply, {:text, "pong"}, %{state | timer: timer()}}