TARAXA
Loading...
Searching...
No Matches
jsonrpc_ws_server.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace taraxa::net {
6
7class JsonRpcWsSession final : public WsSession {
8 public:
10 std::string processRequest(const std::string_view& request) override;
11
12 private:
13 std::string handleRequest(const Json::Value& req);
14 std::string handleSubscription(const Json::Value& req);
15 std::string handleUnsubscription(const Json::Value& req);
16};
17
18class JsonRpcWsServer final : public WsServer {
19 public:
21 std::shared_ptr<WsSession> createSession(tcp::socket&& socket) override;
22};
23
24} // namespace taraxa::net
Definition jsonrpc_ws_server.hpp:18
std::shared_ptr< WsSession > createSession(tcp::socket &&socket) override
Definition jsonrpc_ws_server.cpp:120
Definition jsonrpc_ws_server.hpp:7
std::string handleUnsubscription(const Json::Value &req)
Definition jsonrpc_ws_server.cpp:105
std::string processRequest(const std::string_view &request) override
Definition jsonrpc_ws_server.cpp:19
std::string handleSubscription(const Json::Value &req)
Definition jsonrpc_ws_server.cpp:64
Definition ws_server.hpp:14
WsServer(boost::asio::io_context &ioc, tcp::endpoint endpoint, std::shared_ptr< metrics::JsonRpcMetrics > metrics)
Definition ws_server.cpp:194
Definition ws_session.hpp:26
WsSession(tcp::socket &&socket, std::shared_ptr< WsServer > ws_server)
Definition ws_session.hpp:29
void handleRequest()
Definition ws_server.cpp:86
Definition http_processor.hpp:11