Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#ifndef TOON_WEBSOCKETSUBSCRIPTION_H
|
||||
#define TOON_WEBSOCKETSUBSCRIPTION_H
|
||||
|
||||
#include "ToonSettings.h"
|
||||
#include <HttpClient.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace ToonBridge {
|
||||
namespace Toon {
|
||||
|
||||
class WebSocketSubscription
|
||||
{
|
||||
public:
|
||||
WebSocketSubscription(const ToonSettings& toonSettings);
|
||||
~WebSocketSubscription();
|
||||
|
||||
void Reconnect();
|
||||
|
||||
private:
|
||||
void OpenWebSocket();
|
||||
void WebSocketStatus();
|
||||
void CloseWebSocket();
|
||||
|
||||
std::vector<std::string> RequestHeaders();
|
||||
|
||||
private:
|
||||
Http::HttpClient m_httpClient;
|
||||
ToonSettings m_toonSettings;
|
||||
};
|
||||
|
||||
} // namespace Toon
|
||||
} // namespace ToonBridge
|
||||
|
||||
#endif // TOON_WEBSOCKETSUBSCRIPTION_H
|
||||
Reference in New Issue
Block a user