aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE_data/ws_echo.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ws_SUITE_data/ws_echo.erl')
-rw-r--r--test/ws_SUITE_data/ws_echo.erl20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/ws_SUITE_data/ws_echo.erl b/test/ws_SUITE_data/ws_echo.erl
index 89ebcb6..4b832df 100644
--- a/test/ws_SUITE_data/ws_echo.erl
+++ b/test/ws_SUITE_data/ws_echo.erl
@@ -3,18 +3,18 @@
-module(ws_echo).
-export([init/2]).
--export([websocket_handle/3]).
--export([websocket_info/3]).
+-export([websocket_handle/2]).
+-export([websocket_info/2]).
init(Req, _) ->
{cowboy_websocket, Req, undefined}.
-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}.
+websocket_handle({text, Data}, State) ->
+ {reply, {text, Data}, State};
+websocket_handle({binary, Data}, State) ->
+ {reply, {binary, Data}, State};
+websocket_handle(_Frame, State) ->
+ {ok, State}.
-websocket_info(_Info, Req, State) ->
- {ok, Req, State}.
+websocket_info(_Info, State) ->
+ {ok, State}.