diff options
author | Loïc Hoguin <[email protected]> | 2019-10-06 16:51:27 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-06 16:51:27 +0200 |
commit | 3977f2b96fb8cc2164bfe28ee094b3e661a2fad9 (patch) | |
tree | b709721f8f69a4ee87bbfab8359915bfd201bb10 /test/handlers/ws_deflate_opts_h.erl | |
parent | 2b3852635115ad0aeeade9aeb88f285cfcd870b1 (diff) | |
download | cowboy-3977f2b96fb8cc2164bfe28ee094b3e661a2fad9.tar.gz cowboy-3977f2b96fb8cc2164bfe28ee094b3e661a2fad9.tar.bz2 cowboy-3977f2b96fb8cc2164bfe28ee094b3e661a2fad9.zip |
Document the commands based Websocket interface
The old interface with ok|reply|stop tuples is deprecated.
Diffstat (limited to 'test/handlers/ws_deflate_opts_h.erl')
-rw-r--r-- | test/handlers/ws_deflate_opts_h.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/handlers/ws_deflate_opts_h.erl b/test/handlers/ws_deflate_opts_h.erl index 1c15efe..b70110b 100644 --- a/test/handlers/ws_deflate_opts_h.erl +++ b/test/handlers/ws_deflate_opts_h.erl @@ -26,11 +26,11 @@ init(Req=#{qs := Qs}, State) -> }}. websocket_handle({text, Data}, State) -> - {reply, {text, Data}, State}; + {[{text, Data}], State}; websocket_handle({binary, Data}, State) -> - {reply, {binary, Data}, State}; + {[{binary, Data}], State}; websocket_handle(_, State) -> - {ok, State}. + {[], State}. websocket_info(_, State) -> - {ok, State}. + {[], State}. |