Skip to content

Commit

Permalink
Merge pull request Azolo#58 from rupurt/fix-dialyzer-frame-warning
Browse files Browse the repository at this point in the history
Add pong to the frame type definition
  • Loading branch information
Azolo authored Jun 14, 2018
2 parents 9e200ee + 572cb03 commit a076c20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/websockex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a076c20

Please sign in to comment.