|
|
| 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.
|
◆ close()
template<typename StreamType>
Close the WebSocket.
- Parameters
-
| yield | yield context |
| timeout | timeout for the operation |
- Returns
- Error if any
Implements util::requests::WsConnection.
◆ read()
template<typename StreamType>
Read a message from the WebSocket.
- Parameters
-
| yield | yield context |
| timeout | timeout for the operation |
- Returns
- Message or error
Implements util::requests::WsConnection.
◆ write()
template<typename StreamType>
Write a message to the WebSocket.
- Parameters
-
| message | message to write |
| yield | yield context |
| timeout | timeout for the operation |
- Returns
- Error if any
Implements util::requests::WsConnection.
The documentation for this class was generated from the following file: