TARAXA
Loading...
Searching...
No Matches
taraxa::net::JsonRpcWsSession Class Referencefinal

#include <jsonrpc_ws_server.hpp>

Collaboration diagram for taraxa::net::JsonRpcWsSession:

Public Member Functions

std::string processRequest (const std::string_view &request) override
 
 WsSession (tcp::socket &&socket, std::shared_ptr< WsServer > ws_server)
 
- Public Member Functions inherited from taraxa::net::WsSession
 WsSession (tcp::socket &&socket, std::shared_ptr< WsServer > ws_server)
 
void run ()
 
void close (bool normal=true)
 
bool is_closed () const
 
void newEthBlock (const Json::Value &payload)
 
void newDagBlock (const Json::Value &blk)
 
void newDagBlockFinalized (const Json::Value &payload)
 
void newPbftBlockExecuted (const Json::Value &payload)
 
void newPendingTransaction (const Json::Value &payload)
 
void newPillarBlockData (const Json::Value &payload)
 
void newLogs (const final_chain::BlockHeader &header, TransactionHashes trx_hashes, const TransactionReceipts &receipts)
 

Private Member Functions

std::string handleRequest (const Json::Value &req)
 
std::string handleSubscription (const Json::Value &req)
 
std::string handleUnsubscription (const Json::Value &req)
 

Additional Inherited Members

- Protected Member Functions inherited from taraxa::net::WsSession
void handleRequest ()
 
void do_write (std::string &&message)
 
- Protected Attributes inherited from taraxa::net::WsSession
websocket::stream< beast::tcp_stream > ws_
 
std::atomic< int > subscription_id_ = 0
 
std::weak_ptr< WsServerws_server_
 
Subscriptions subscriptions_
 
logger::Logger logger_
 

Member Function Documentation

◆ handleRequest()

std::string taraxa::net::JsonRpcWsSession::handleRequest ( const Json::Value &  req)
private

◆ handleSubscription()

std::string taraxa::net::JsonRpcWsSession::handleSubscription ( const Json::Value &  req)
private

◆ handleUnsubscription()

std::string taraxa::net::JsonRpcWsSession::handleUnsubscription ( const Json::Value &  req)
private

◆ processRequest()

std::string taraxa::net::JsonRpcWsSession::processRequest ( const std::string_view &  request)
overridevirtual

◆ WsSession()

taraxa::net::WsSession::WsSession ( tcp::socket &&  socket,
std::shared_ptr< WsServer ws_server 
)
inlineexplicit

The documentation for this class was generated from the following files: