aboutsummaryrefslogtreecommitdiffstats
path: root/test/websocket_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-12-22 20:19:05 +0100
committerLoïc Hoguin <[email protected]>2011-12-22 20:19:05 +0100
commit7a68a38e5a0bc5bea4b542aebf123d8c3496dee0 (patch)
tree50d55a14db3f9f0fe99a32385dad181d149ae3a8 /test/websocket_handler.erl
parent9800348c2138ec1f7fa140b61127b3cc3d346f1d (diff)
downloadcowboy-7a68a38e5a0bc5bea4b542aebf123d8c3496dee0.tar.gz
cowboy-7a68a38e5a0bc5bea4b542aebf123d8c3496dee0.tar.bz2
cowboy-7a68a38e5a0bc5bea4b542aebf123d8c3496dee0.zip
Add ct tests for binary websocket frames
Diffstat (limited to 'test/websocket_handler.erl')
-rw-r--r--test/websocket_handler.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/websocket_handler.erl b/test/websocket_handler.erl
index 0cfc8f3..abb4967 100644
--- a/test/websocket_handler.erl
+++ b/test/websocket_handler.erl
@@ -23,6 +23,8 @@ websocket_init(_TransportName, Req, _Opts) ->
websocket_handle({text, Data}, Req, State) ->
{reply, {text, Data}, Req, State};
+websocket_handle({binary, Data}, Req, State) ->
+ {reply, {binary, Data}, Req, State};
websocket_handle(_Frame, Req, State) ->
{ok, Req, State}.