Add websocket::stream pong and async_pong

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:13 -07:00
parent f56d4fe74b
commit f904759877
8 changed files with 156 additions and 16 deletions
+6
View File
@@ -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});