diff options
author | Loïc Hoguin <[email protected]> | 2013-05-15 14:53:45 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-05-15 14:53:45 +0200 |
commit | 7577ce4920cde232cb017e122c45d91d326a72e9 (patch) | |
tree | c1cc22361bc0b230f72acb8812ca682cef7c01f2 | |
parent | a45787208efb1331050a02b1e01640a27b7e2c3c (diff) | |
download | cowboy-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.
-rw-r--r-- | src/cowboy_websocket.erl | 4 |
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. |