Clio develop
The XRP Ledger API server.
|
Public Member Functions | |
WsConnectionImpl (StreamType ws) | |
std::expected< std::string, RequestError > | read (boost::asio::yield_context yield, std::optional< std::chrono::steady_clock::duration > timeout=std::nullopt) override |
Read a message from the WebSocket. | |
std::optional< RequestError > | write (std::string const &message, boost::asio::yield_context yield, std::optional< std::chrono::steady_clock::duration > timeout=std::nullopt) override |
Write a message to the WebSocket. | |
std::optional< RequestError > | close (boost::asio::yield_context yield, std::chrono::steady_clock::duration const timeout=kDEFAULT_TIMEOUT) override |
Close the WebSocket. | |
![]() |
Additional Inherited Members | |
![]() | |
static constexpr std::chrono::seconds | kDEFAULT_TIMEOUT {5} |
|
inlineoverridevirtual |
Close the WebSocket.
yield | yield context |
timeout | timeout for the operation |
Implements util::requests::WsConnection.
|
inlineoverridevirtual |
Read a message from the WebSocket.
yield | yield context |
timeout | timeout for the operation |
Implements util::requests::WsConnection.
|
inlineoverridevirtual |
Write a message to the WebSocket.
message | message to write |
yield | yield context |
timeout | timeout for the operation |
Implements util::requests::WsConnection.