cocos2d-x  3.0alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SocketIO Class Reference

Singleton and wrapper class to provide static creation method as well as registry of all sockets. More...

#include <SocketIO.h>

Classes

class  SIODelegate
 The delegate class to process socket.io events. More...
 

Public Member Functions

 SocketIO ()
virtual ~SocketIO (void)
local ~SocketIO ()

Static Public Member Functions

static SocketIOinstance ()
var instance ()
static SIOClientconnect (SocketIO::SIODelegate &delegate, const std::string &uri)
 Static client creation method, similar to socketio.connect(uri) in JS. More...
 

Friends

class SIOClientImpl

Detailed Description

Singleton and wrapper class to provide static creation method as well as registry of all sockets.

Constructor & Destructor Documentation

SocketIO ( )
var SocketIO ( )
local SocketIO ( )
virtual ~SocketIO ( void  )
virtual
var ~SocketIO (   )
virtual
local ~SocketIO (   )
virtual

Member Function Documentation

static SIOClient* connect ( SocketIO::SIODelegate delegate,
const std::string &  uri 
)
static

Static client creation method, similar to socketio.connect(uri) in JS.

Parameters
delegateThe delegate which want to receive events from the socket.io client
uriThe URI of the socket.io server
Returns
An initialized SIOClient if connected successfully, otherwise NULL
static SocketIO* instance ( )
static
var instance ( )
static
local instance ( )
static

Friends And Related Function Documentation

friend class SIOClientImpl
friend
var SIOClientImpl
friend
local SIOClientImpl
friend

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