forked from boostorg/beast
Use suggested timeouts in Websocket examples
This commit is contained in:
@@ -17,6 +17,10 @@ websocket_session(
|
||||
: ws_(std::move(socket))
|
||||
, state_(state)
|
||||
{
|
||||
// Set suggested timeout settings for the websocket
|
||||
ws_.set_option(
|
||||
websocket::stream_base::suggested_settings(
|
||||
websocket::role_type::server));
|
||||
}
|
||||
|
||||
websocket_session::
|
||||
|
||||
Reference in New Issue
Block a user