Working clock stream. Propagate up write errors

This commit is contained in:
Ian Gulliver
2019-04-29 00:11:07 +00:00
parent 4d4525b145
commit 205b8253b2
11 changed files with 92 additions and 13 deletions

View File

@@ -1,4 +1,16 @@
#pragma once
#include <memory>
class FastCGIRequest;
class SSEStream {
public:
SSEStream(std::unique_ptr<FastCGIRequest> request);
[[nodiscard]] bool WriteEvent(const std::string& data, uint64_t id=0, const std::string& type="");
bool End();
private:
std::unique_ptr<FastCGIRequest> request_;
};