roar
Loading...
Searching...
No Matches
request_listener.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <memory>
7
8class RequestListener : public std::enable_shared_from_this<RequestListener>
9{
10 private:
12
13 ROAR_GET(ws)
14 ({
15 .path = "/api/ws",
16 .routeOptions =
17 {
18 .expectUpgrade = true,
19 },
20 });
21
22 private:
23 std::shared_ptr<Roar::WebsocketSession> ws_;
24
25 private:
26 BOOST_DESCRIBE_CLASS(RequestListener, (), (), (), (roar_ws))
27};
Definition request_listener.hpp:8
std::shared_ptr< Roar::WebsocketSession > ws_
Definition request_listener.hpp:23
ROAR_MAKE_LISTENER(RequestListener)
#define ROAR_GET(HandlerName)
Define route for GET, others can be accessed via ROAR_ROUTE({.verb = ..., .path = ""})
Definition request_listener.hpp:264