mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
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.
This commit is contained in:
parent
6e784f1a45
commit
f810d8dd64
4 changed files with 52 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue