aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-12-07 14:17:13 +0100
committerLoïc Hoguin <[email protected]>2023-12-07 14:17:13 +0100
commit32594a51994c70cfa1a82119a7d439af98c384b4 (patch)
tree5c9275593d23d8d429ddf2ae7ade6059e5079f0a /doc
parent4907734a83b1081e170bf48dbf22f27e800823d0 (diff)
downloadcowboy-32594a51994c70cfa1a82119a7d439af98c384b4.tar.gz
cowboy-32594a51994c70cfa1a82119a7d439af98c384b4.tar.bz2
cowboy-32594a51994c70cfa1a82119a7d439af98c384b4.zip
Fix Websocket subprotocol example
Diffstat (limited to 'doc')
-rw-r--r--doc/src/guide/ws_handlers.asciidoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/guide/ws_handlers.asciidoc b/doc/src/guide/ws_handlers.asciidoc
index 5cfdcb1..7005665 100644
--- a/doc/src/guide/ws_handlers.asciidoc
+++ b/doc/src/guide/ws_handlers.asciidoc
@@ -62,7 +62,7 @@ init(Req0, State) ->
undefined ->
{cowboy_websocket, Req0, State};
Subprotocols ->
- case lists:keymember(<<"mqtt">>, 1, Subprotocols) of
+ case lists:member(<<"mqtt">>, 1, Subprotocols) of
true ->
Req = cowboy_req:set_resp_header(<<"sec-websocket-protocol">>,
<<"mqtt">>, Req0),