My Project
 All Classes Functions Variables Pages
Public Member Functions | List of all members
WebSocketHandler Class Reference

Public Member Functions

virtual ~WebSocketHandler ()
 Destructor.
 
virtual void onClose ()
 The default onClose handler. If no over-riding handler is provided for the "close" event, this method is called.
 
virtual void onMessage (WebSocketInputStreambuf *pWebSocketInputStreambuf, WebSocket *pWebSocket)
 The default onData handler. If no over-riding handler is provided for the "message" event, this method is called. A particularly useful pattern for using onMessage is: ``` std::stringstream buffer; buffer << pWebSocketInputRecordStreambuf; ``` This will read the whole message into the string stream.
 
virtual void onError (std::string error)
 The default onError handler. If no over-riding handler is provided for the "error" event, this method is called.
 

The documentation for this class was generated from the following files: