mi::http::IWeb_socket_data_handler Class Reference
[HTTP server]
Description
A WebSocket data handler that can be installed to a WebSocket connection to handle data arriving at the WebSocket. After its installation, the WebSocket data handler is called when new data arrives on the connection.
Public Member Functions
- virtual void handle( IWeb_socket* web_socket, neuraylib::IBuffer* buffer, bool binary_frame) =0
- The handle() function is called when new data is received. More...
Member Functions
- virtual void mi::http::IWeb_socket_data_handler::handle( IWeb_socket* web_socket, neuraylib::IBuffer* buffer, bool binary_frame) [pure virtual]
-
The handle() function is called when new data is received.
Parameters
- web_socket
- The WebSocket connection on which new data has arrived.
- buffer
- A buffer containing received data.
- binary_frame
- Indicates whether this data buffer is binary or text.