From f810d8dd6496da713e7c70a5e146120de3695774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 21 Sep 2018 14:04:20 +0200 Subject: 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. --- doc/src/guide/migrating_from_2.4.asciidoc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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, -- cgit v1.2.3