Current section

Files

Jump to
absinthe_graphql_ws lib absinthe graphql_ws message pong.ex
Raw

lib/absinthe/graphql_ws/message/pong.ex

defmodule Absinthe.GraphqlWS.Message.Pong do
@moduledoc """
Reply to a Ping message.
"""
def new(payload \\ %{}) do
Jason.encode!(%{type: "pong", payload: payload})
end
end