aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-21 14:04:20 +0200
committerLoïc Hoguin <[email protected]>2018-09-21 15:01:57 +0200
commitf810d8dd6496da713e7c70a5e146120de3695774 (patch)
tree0572028ff1ea5fdc6d3d4b081d75ebdbb6bf557d /doc
parent6e784f1a454c6bdeab839d99d59dac992d430c97 (diff)
downloadcowboy-f810d8dd6496da713e7c70a5e146120de3695774.tar.gz
cowboy-f810d8dd6496da713e7c70a5e146120de3695774.tar.bz2
cowboy-f810d8dd6496da713e7c70a5e146120de3695774.zip
Add the {active, boolean()} Websocket command
This command is currently not documented. It allows disabling the reading of incoming data from the socket, and can be used as a poor man's flow control.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/guide/migrating_from_2.4.asciidoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/guide/migrating_from_2.4.asciidoc b/doc/src/guide/migrating_from_2.4.asciidoc
index edf7d5b..0528659 100644
--- a/doc/src/guide/migrating_from_2.4.asciidoc
+++ b/doc/src/guide/migrating_from_2.4.asciidoc
@@ -31,6 +31,10 @@ also been worked on.
sent or commands yet to be introduced. New commands will
be available only through this new interface.
+* Add the `{active, boolean()}` Websocket handler command.
+ It allows disabling reading from the socket when `false`
+ is returned. `true` reenables reading from the socket.
+
* Add the protocol option `logger` that allows configuring
which logger module will be used. The logger module must
follow the interface of the new `logger` module in Erlang/OTP 21,