inline void call_teardown(Socket& socket, error_code& ec) { using websocket::teardown; teardown(websocket::teardown_tag{}, socket, ec); }
inline void call_teardown(Socket& socket, websocket::error_code& ec) { using websocket::teardown; teardown(socket, ec); }
inline void call_async_teardown(Socket& socket, TeardownHandler&& handler) { using websocket::async_teardown; async_teardown(websocket::teardown_tag{}, socket, std::forward<TeardownHandler>(handler)); }