diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a8a7e5..5be9f81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## In Git ### Bug Fixes - Fix `pong` frame not being a correct return type in spec +- Fix bare `ping` and `pong` frames in spec + - When neither grame doesn't have a payload ## 0.4.1 ### Enhancements diff --git a/lib/websockex.ex b/lib/websockex.ex index 04b7127..25fc78a 100644 --- a/lib/websockex.ex +++ b/lib/websockex.ex @@ -48,8 +48,9 @@ defmodule WebSockex do @type client :: pid | :atom | {:via, module, atom} @type frame :: - {:ping | :ping, nil | message :: binary} - | {:pong | :pong, nil | message :: binary} + :ping + | :pong + | {:ping | :pong, nil | message :: binary} | {:text | :binary, message :: binary} @typedoc """