diff options
author | Loïc Hoguin <[email protected]> | 2014-04-20 22:20:54 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-04-20 22:20:54 +0200 |
commit | 74512fc84c1e20050f69b3a53d2fc5ef4edbe9dd (patch) | |
tree | 4b153ebe6a7cc25872def6e6f06917a3057b3ff5 /test/autobahn_SUITE_data/autobahn_echo.erl | |
parent | 806cde9ace3bd67988e07885c9899ead0a9425d5 (diff) | |
download | cowboy-74512fc84c1e20050f69b3a53d2fc5ef4edbe9dd.tar.gz cowboy-74512fc84c1e20050f69b3a53d2fc5ef4edbe9dd.tar.bz2 cowboy-74512fc84c1e20050f69b3a53d2fc5ef4edbe9dd.zip |
Enable Autobahn Test Suite by default
Includes a variety of small changes that are a first step to
improving the test system heavily.
Diffstat (limited to 'test/autobahn_SUITE_data/autobahn_echo.erl')
-rw-r--r-- | test/autobahn_SUITE_data/autobahn_echo.erl | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/test/autobahn_SUITE_data/autobahn_echo.erl b/test/autobahn_SUITE_data/autobahn_echo.erl deleted file mode 100644 index 07f7fd9..0000000 --- a/test/autobahn_SUITE_data/autobahn_echo.erl +++ /dev/null @@ -1,26 +0,0 @@ -%% Feel free to use, reuse and abuse the code in this file. - --module(autobahn_echo). --behaviour(cowboy_websocket_handler). --export([init/3]). --export([websocket_init/3, websocket_handle/3, - websocket_info/3, websocket_terminate/3]). - -init(_Any, _Req, _Opts) -> - {upgrade, protocol, cowboy_websocket}. - -websocket_init(_TransportName, Req, _Opts) -> - {ok, 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_info(_Info, Req, State) -> - {ok, Req, State}. - -websocket_terminate(_Reason, _Req, _State) -> - ok. |