packio
|
Adapter class to support websockets. More...
#include <packio/extra/websocket.h>
Public Member Functions | |
template<typename Buffer , typename Handler > | |
auto | async_write_some (Buffer &&buffer, Handler &&handler) |
Set the no_delay option on the lowest layer and Write a websocket message. | |
template<typename... Args> | |
auto | close (Args &&... args) |
Close the lowest layer, closing a websocket is a blocking operation which packio does not expect. | |
template<typename... Args> | |
auto | cancel (Args &&...) |
Cancel is not possible on websockets, raise a compile-time error is the user tries to use it. | |
Adapter class to support websockets.
Websocket | The websocket type to adapt. |
kBinary | Configure the websocket in binary mode. Most likely a boost::beast::websocket::stream<boost::beast::tcp_stream> |