Skip to content

Commit

Permalink
Update documentation for websocket::permessage_deflate
Browse files Browse the repository at this point in the history
Resolves boostorg#962
  • Loading branch information
ashtum committed Feb 14, 2024
1 parent 7d4da62 commit 40c22cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/boost/beast/websocket/option.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ namespace websocket {
These settings control the permessage-deflate extension,
which allows messages to be compressed.
@note Objects of this type are used with
@ref beast::websocket::stream::set_option.
@note
These settings should be configured before performing the WebSocket
handshake.
Objects of this type are used with
@ref beast::websocket::stream::set_option.
*/
struct permessage_deflate
{
Expand Down
5 changes: 5 additions & 0 deletions include/boost/beast/websocket/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ class stream
@throws invalid_argument if `deflateSupported == false`, and either
`client_enable` or `server_enable` is `true`.
@note
These settings should be configured before performing the WebSocket
handshake.
*/
void
set_option(permessage_deflate const& o);
Expand Down

0 comments on commit 40c22cb

Please sign in to comment.