Concept defining the interface for WebSocket stream operations.
More...
#include <websocket_stream.hpp>
template<typename T>
const transport::websocket_connection_params params,
const std::span<const std::byte> data,
const boost::asio::mutable_buffer &buffer,
std::function<void(const boost::system::error_code &, std::size_t)> handler) {
{ stream.async_connect(params, handler) } -> std::same_as<void>;
{ stream.async_write(data, handler) } -> std::same_as<void>;
{ stream.async_read(buffer, handler) } -> std::same_as<void>;
{ stream.async_close(handler) } -> std::same_as<void>;
}
Concept defining the interface for WebSocket stream operations.
Concept defining the interface for WebSocket stream operations.
Types satisfying this concept provide async operations for WebSocket connections, including connect, read, write, and close.
Definition at line 23 of file websocket_stream.hpp.