void test_websocket_client::receive(std::function<void(std::string, std::exception_ptr)> callback) { pplx::create_task([callback, this]() { m_receive_function(callback); }); }
pplx::task<std::string> test_websocket_client::receive() { return m_receive_function(); }