28 lines
783 B
C++
28 lines
783 B
C++
/* file WebsocketSink.hpp
|
|
*
|
|
* author: Roland Conybeare, Sep 2022
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "xo/reactor/AbstractSink.hpp"
|
|
#include "xo/printjson/PrintJson.hpp"
|
|
|
|
namespace xo {
|
|
namespace web {
|
|
class Webserver;
|
|
|
|
class WebsocketSink : public reactor::AbstractSink {
|
|
public:
|
|
using PrintJson = xo::json::PrintJson;
|
|
|
|
public:
|
|
static ref::rp<WebsocketSink> make(ref::rp<Webserver> const & websrv,
|
|
ref::rp<PrintJson> const & pjson,
|
|
uint32_t session_id,
|
|
std::string const & stream_name);
|
|
}; /*WebsocketSink*/
|
|
} /*namespace web*/
|
|
} /*namespace xo*/
|
|
|
|
/* end WebsocketSink.hpp */
|