aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/ws_active_commands_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-13 15:55:09 +0100
committerLoïc Hoguin <[email protected]>2018-11-13 15:55:09 +0100
commit8d920f3db97067159fcf6ca497979f8e063986dc (patch)
treedf27e618908d6c5635505e74e11440adac11f881 /test/handlers/ws_active_commands_h.erl
parent8164b504534e932df24adb65c5e15ed8d8a9feea (diff)
downloadcowboy-8d920f3db97067159fcf6ca497979f8e063986dc.tar.gz
cowboy-8d920f3db97067159fcf6ca497979f8e063986dc.tar.bz2
cowboy-8d920f3db97067159fcf6ca497979f8e063986dc.zip
Add the {deflate, boolean()} Websocket command
It allows to temporarily disable Websocket compression when it was negotiated. It's ignored otherwise. This can be used as fine-grained control when some frames do not compress well.
Diffstat (limited to 'test/handlers/ws_active_commands_h.erl')
-rw-r--r--test/handlers/ws_active_commands_h.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handlers/ws_active_commands_h.erl b/test/handlers/ws_active_commands_h.erl
index 4cdb3b1..1c615e3 100644
--- a/test/handlers/ws_active_commands_h.erl
+++ b/test/handlers/ws_active_commands_h.erl
@@ -1,5 +1,5 @@
-%% This module takes commands from the x-commands header
-%% and returns them in the websocket_init/1 callback.
+%% This module starts with active mode disabled
+%% and enables it again once a timeout is triggered.
-module(ws_active_commands_h).
-behavior(cowboy_websocket).