cocos2d-x  3.3rc0
 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 ()
var ~Delegate ()
local ~Delegate ()
virtual void onOpen (WebSocket *ws)=0
local onOpen ( local ws)
virtual void onMessage (WebSocket *ws, const Data &data)=0
var onMessage ( var ws, var data)
local onMessage ( local ws, local data)
virtual void onClose (WebSocket *ws)=0
var onClose ( var ws)
local onClose ( local ws)
virtual void onError (WebSocket *ws, const ErrorCode &error)=0

Detailed Description

The delegate class to process websocket events.

Constructor & Destructor Documentation

virtual ~Delegate ( )
inlinevirtual
var ~Delegate ( )
inlinevirtual
local ~Delegate ( )
inlinevirtual

Member Function Documentation

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

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