xo-umbrella2/xo-websock/include/xo/websock/WebsocketSink.hpp
Roland Conybeare dd1a6b1afc Add 'xo-websock/' from commit '57bf06a68f'
git-subtree-dir: xo-websock
git-subtree-mainline: 97eefaea22
git-subtree-split: 57bf06a68f
2025-05-11 15:08:51 -05:00

28 lines
753 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 rp<WebsocketSink> make(rp<Webserver> const & websrv,
rp<PrintJson> const & pjson,
uint32_t session_id,
std::string const & stream_name);
}; /*WebsocketSink*/
} /*namespace web*/
} /*namespace xo*/
/* end WebsocketSink.hpp */