forked from boostorg/beast
Add websocket::stream pong and async_pong
This commit is contained in:
@@ -910,6 +910,9 @@ public:
|
||||
}
|
||||
ws.set_option(pong_callback{});
|
||||
|
||||
// send pong
|
||||
ws.pong("");
|
||||
|
||||
// send auto fragmented message
|
||||
ws.set_option(auto_fragment{true});
|
||||
ws.set_option(write_buffer_size{8});
|
||||
@@ -1172,6 +1175,9 @@ public:
|
||||
ws.set_option(pong_callback{});
|
||||
}
|
||||
|
||||
// send pong
|
||||
ws.async_pong("", do_yield[ec]);
|
||||
|
||||
// send auto fragmented message
|
||||
ws.set_option(auto_fragment{true});
|
||||
ws.set_option(write_buffer_size{8});
|
||||
|
||||
Reference in New Issue
Block a user