From 572cb03a1e8e79762cd8cf00ce3462df48ff35b8 Mon Sep 17 00:00:00 2001 From: Alex Kwiatkowski Date: Wed, 13 Jun 2018 12:32:17 -0700 Subject: [PATCH] Add pong to the frame type definition --- lib/websockex.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/websockex.ex b/lib/websockex.ex index f1c2d8a..17cd470 100644 --- a/lib/websockex.ex +++ b/lib/websockex.ex @@ -47,8 +47,10 @@ defmodule WebSockex do @type client :: pid | :atom | {:via, module, atom} - @type frame :: {:ping | :ping, nil | message :: binary} - | {:text | :binary, message :: binary} + @type frame :: + {:ping | :ping, nil | message :: binary} + | {:pong | :pong, nil | message :: binary} + | {:text | :binary, message :: binary} @typedoc """ The frame sent when the negotiating a connection closure.