From 3977f2b96fb8cc2164bfe28ee094b3e661a2fad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 6 Oct 2019 16:51:27 +0200 Subject: Document the commands based Websocket interface The old interface with ok|reply|stop tuples is deprecated. --- test/handlers/ws_dont_validate_utf8_h.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/handlers/ws_dont_validate_utf8_h.erl') diff --git a/test/handlers/ws_dont_validate_utf8_h.erl b/test/handlers/ws_dont_validate_utf8_h.erl index 6599c78..27be6ad 100644 --- a/test/handlers/ws_dont_validate_utf8_h.erl +++ b/test/handlers/ws_dont_validate_utf8_h.erl @@ -13,11 +13,11 @@ init(Req, 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}. -- cgit v1.2.3