0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix the cowboy_websocket:frame/0 type

It accepts iodata() and not binary() for the payload.
This commit is contained in:
Loïc Hoguin 2013-05-15 14:53:45 +02:00
parent a45787208e
commit 7577ce4920

View file

@ -29,8 +29,8 @@
-export_type([close_code/0]).
-type frame() :: close | ping | pong
| {text | binary | close | ping | pong, binary()}
| {close, close_code(), binary()}.
| {text | binary | close | ping | pong, iodata()}
| {close, close_code(), iodata()}.
-export_type([frame/0]).
-type opcode() :: 0 | 1 | 2 | 8 | 9 | 10.