コード例 #1
0
void test_websocket_client::send(std::string payload, std::function<void(std::exception_ptr)> callback)
{
    pplx::create_task([payload, callback, this]()
        {
            m_send_function(payload, callback);
        });
}
コード例 #2
0
pplx::task<void> test_websocket_client::send(const utility::string_t &msg)
{
    return m_send_function(msg);
}