From f459a12a5ac0b8ccf7820fcb3d48938e2bb68d99 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Fri, 22 Jul 2022 15:36:38 +0100 Subject: [PATCH] format --- lib/pleroma/web/mastodon_api/websocket_handler.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/web/mastodon_api/websocket_handler.ex b/lib/pleroma/web/mastodon_api/websocket_handler.ex index 327be6839..861a7ce3e 100644 --- a/lib/pleroma/web/mastodon_api/websocket_handler.ex +++ b/lib/pleroma/web/mastodon_api/websocket_handler.ex @@ -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()}}