add bubble timeline #100

Merged
floatingghost merged 4 commits from bubble-keikaku into develop 2022-07-22 14:55:38 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit f459a12a5a - Show all commits

View File

@ -64,6 +64,7 @@ defmodule Pleroma.Web.MastodonAPI.WebsocketHandler 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()}}