Skip to content

Commit

Permalink
Add pong to the frame type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rupurt committed Jun 13, 2018
1 parent 9e200ee commit 572cb03
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 572cb03

Please sign in to comment.