aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-15 14:53:45 +0200
committerLoïc Hoguin <[email protected]>2013-05-15 14:53:45 +0200
commit7577ce4920cde232cb017e122c45d91d326a72e9 (patch)
treec1cc22361bc0b230f72acb8812ca682cef7c01f2 /src
parenta45787208efb1331050a02b1e01640a27b7e2c3c (diff)
downloadcowboy-7577ce4920cde232cb017e122c45d91d326a72e9.tar.gz
cowboy-7577ce4920cde232cb017e122c45d91d326a72e9.tar.bz2
cowboy-7577ce4920cde232cb017e122c45d91d326a72e9.zip
Fix the cowboy_websocket:frame/0 type
It accepts iodata() and not binary() for the payload.
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_websocket.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl
index b5075c0..3667797 100644
--- a/src/cowboy_websocket.erl
+++ b/src/cowboy_websocket.erl
@@ -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.