From 7577ce4920cde232cb017e122c45d91d326a72e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Wed, 15 May 2013 14:53:45 +0200
Subject: Fix the cowboy_websocket:frame/0 type

It accepts iodata() and not binary() for the payload.
---
 src/cowboy_websocket.erl | 4 ++--
 1 file 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.
-- 
cgit v1.2.3