mi::http::IWeb_socket_state_handler Class Reference
[HTTP server]
Description
A WebSocket state handler that can be installed to a WebSocket connection to handle events of the WebSocket. After its installation, the WebSocket state handler is called whenever the WebSocket changes its state. The WebSocket state handler can query the WebSocket's state by calling mi::http::IWeb_socket::get_state().
Public Member Functions
- virtual void handle( IWeb_socket* web_socket) =0
- The handle() function is called when the WebSocket changes its state. More...
Member Functions
- virtual void mi::http::IWeb_socket_state_handler::handle( IWeb_socket* web_socket) [pure virtual]
-
The handle() function is called when the WebSocket changes its state.
Parameters
- web_socket
- The WebSocket connection whose state changes.