forked from boostorg/beast
websocket read tests
This commit is contained in:
@@ -27,12 +27,18 @@ public:
|
||||
pmd.client_enable = false;
|
||||
pmd.server_enable = false;
|
||||
|
||||
// normal close
|
||||
// close
|
||||
doTest(pmd, [&](ws_type& ws)
|
||||
{
|
||||
w.close(ws, {});
|
||||
});
|
||||
|
||||
// close with code
|
||||
doTest(pmd, [&](ws_type& ws)
|
||||
{
|
||||
w.close(ws, close_code::going_away);
|
||||
});
|
||||
|
||||
// double close
|
||||
{
|
||||
echo_server es{log};
|
||||
|
||||
Reference in New Issue
Block a user