EHS Embedded HTTP Server
1.5.0.132
|
Event handler interface for the server-side WebSockets endpoint. More...
#include <wsendpoint.h>
Public Member Functions | |
void | send_text (const std::string data) |
Send a text message to the remote client. | |
void | send_binary (const std::string data) |
Send a binary message to the remote client. | |
wshandler () | |
Constructor. | |
virtual | ~wshandler () |
Destructor. | |
Friends | |
class | wsendpoint |
Event handler interface for the server-side WebSockets endpoint.
This class is used as the API for working with a server-side WebSockets endpoint. An application has to derive a specific implementation from this class, implementing the various pure virtual methods.
void send_binary | ( | const std::string | data | ) | [inline] |
Send a binary message to the remote client.
data | The payload to send. |
Definition at line 97 of file wsendpoint.h.
void send_text | ( | const std::string | data | ) | [inline] |
Send a text message to the remote client.
data | The payload to send. |
Definition at line 89 of file wsendpoint.h.