forked from boostorg/beast
Use suggested timeouts in Websocket examples
This commit is contained in:
1 parent
f21358186e
commit
fc7b47fc5d
16 files changed
+105
-329
No files matched your search
@@ -52,6 +52,10 @@ public:
|
||||
session(tcp::socket socket)
|
||||
: ws_(std::move(socket))
|
||||
{
|
||||
// Set suggested timeout settings for the websocket
|
||||
ws_.set_option(
|
||||
websocket::stream_base::suggested_settings(
|
||||
websocket::role_type::server));
|
||||
}
|
||||
|
||||
// Start the asynchronous operation
|
||||
|
||||
Reference in new issue
Block a user