mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Fix the cowboy_websocket:frame/0 type
It accepts iodata() and not binary() for the payload.
This commit is contained in:
parent
a45787208e
commit
7577ce4920
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@
|
||||||
-export_type([close_code/0]).
|
-export_type([close_code/0]).
|
||||||
|
|
||||||
-type frame() :: close | ping | pong
|
-type frame() :: close | ping | pong
|
||||||
| {text | binary | close | ping | pong, binary()}
|
| {text | binary | close | ping | pong, iodata()}
|
||||||
| {close, close_code(), binary()}.
|
| {close, close_code(), iodata()}.
|
||||||
-export_type([frame/0]).
|
-export_type([frame/0]).
|
||||||
|
|
||||||
-type opcode() :: 0 | 1 | 2 | 8 | 9 | 10.
|
-type opcode() :: 0 | 1 | 2 | 8 | 9 | 10.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue