6#include <userver/components/component_config.hpp>
7#include <userver/components/component_context.hpp>
8#include <userver/server/handlers/http_handler_base.hpp>
9#include <userver/server/websocket/server.hpp>
11USERVER_NAMESPACE_BEGIN
13namespace server::websocket {
39 WebsocketHandlerBase(
const components::ComponentConfig&,
44 server::
request::RequestContext&)
const = 0;
49 server::http::HttpResponse&,
50 server::
request::RequestContext&)
const {
55 void WriteMetrics(utils::statistics::Writer& writer)
const;
61 std::string HandleRequestThrow(
62 const server::http::HttpRequest& request,
63 server::
request::RequestContext& context)
const override;
65 websocket::Config config_;
66 mutable Statistics stats_;
67 utils::statistics::Entry statistics_holder_;