cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
WebSocket::Delegate Class Referenceabstract

The delegate class to process websocket events. More...

#include <WebSocket.h>

Inheritance diagram for WebSocket::Delegate:
LuaWebSocket

Public Member Functions

virtual ~Delegate ()
virtual void onOpen (WebSocket *ws)=0
virtual void onMessage (WebSocket *ws, const Data &data)=0
virtual void onClose (WebSocket *ws)=0
virtual void onError (WebSocket *ws, const ErrorCode &error)=0

Detailed Description

The delegate class to process websocket events.

Constructor & Destructor Documentation

virtual ~Delegate ( )
inlinevirtual

Member Function Documentation

virtual void onClose ( WebSocket ws)
pure virtual
virtual void onError ( WebSocket ws,
const ErrorCode error 
)
pure virtual
virtual void onMessage ( WebSocket ws,
const Data data 
)
pure virtual
virtual void onOpen ( WebSocket ws)
pure virtual

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