24 lines
603 B
C++
24 lines
603 B
C++
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
#pragma once
|
|
|
|
#include "pplx/pplxtasks.h"
|
|
#include "cpprest/base_uri.h"
|
|
|
|
namespace signalr
|
|
{
|
|
class websocket_client
|
|
{
|
|
public:
|
|
virtual pplx::task<void> connect(const web::uri &url) = 0;
|
|
|
|
virtual pplx::task<void> send(const utility::string_t &message) = 0;
|
|
|
|
virtual pplx::task<std::string> receive() = 0;
|
|
|
|
virtual pplx::task<void> close() = 0;
|
|
|
|
virtual ~websocket_client() {};
|
|
};
|
|
} |