Defined in header
The stream is operating as a client.
The stream is operating as a server.
Whether the endpoint is a client or server affects the behavior of the Close
the WebSocket Connection operation described in rfc6455 section
7.1.1. The shutdown behavior depends on the type of the next layer template
parameter used to construct the
websocket::stream. Other next layer types including
user-defined types may implement different role-based behavior when performing
the close operation.
The default implementation for
websocket::stream when the next layer type
behaves as follows:
When the next layer type is a
boost::asio::ssl::stream, the connection is closed by performing
the SSL closing handshake corresponding to the role type, client or server.