Working clock stream. Propagate up write errors
This commit is contained in:
12
sse_stream.h
12
sse_stream.h
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user