Manages the handling of WebSocket messages in a WebSocket connection.
More...
#include <WsSession.hpp>
Inherits enable_shared_from_this< WsSession >.
Manages the handling of WebSocket messages in a WebSocket connection.
Holds a pointer to the private session information object for the client.
◆ WsSession()
Create a WebSocket session object with the supplied data.
- Parameters
-
clientSession_ | the client session associated with the WebSocket session |
serverConfiguration_ | the configuration of the HTTP server that created this session |
socket_ | the session socket |
TODO A single WebSocket web application will handle all the session. TODO This can be selected from the routing trie in advance.
◆ configuration()
Get the shared state of the http server.
Called by handler implementations.
◆ onAccept()
void onAccept |
( |
boost::system::error_code |
ec | ) |
|
|
inline |
- Exceptions
-
NetworkException | if there was an issue accepting |
◆ onRead()
void onRead |
( |
boost::system::error_code |
ec, |
|
|
std::size_t |
bytes_transferred |
|
) |
| |
|
inline |
- Exceptions
-
NetworkException | if there was an issue reading |
◆ onWrite()
void onWrite |
( |
boost::system::error_code |
ec, |
|
|
std::size_t |
bytes_transferred |
|
) |
| |
|
inline |
- Exceptions
-
NetworkException | if there was an issue writing |
The documentation for this class was generated from the following file: