|  | Home | Libraries | People | FAQ | More | 
The role of the websocket stream endpoint.
        Defined in header <boost/beast/websocket/role.hpp>
      
enum role_type
| Name | Description | 
|---|---|
| 
                   | 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
        is a boost::asio::ip::tcp::socket
        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.
      
https://tools.ietf.org/html/rfc6455#section-7.1.1
        Convenience header <boost/beast/websocket.hpp>