Singleton and wrapper class to provide static creation method as well as registry of all sockets.
More...
#include <SocketIO.h>
Singleton and wrapper class to provide static creation method as well as registry of all sockets.
Static client creation method, similar to socketio.connect(uri) in JS.
- Parameters
-
| delegate | The delegate which want to receive events from the socket.io client |
| uri | The URI of the socket.io server |
- Returns
- An initialized SIOClient if connected successfully, otherwise NULL
| var connect |
( |
var |
delegate, |
|
|
var |
uri |
|
) |
| |
|
static |
Static client creation method, similar to socketio.connect(uri) in JS.
- Parameters
-
| delegate | The delegate which want to receive events from the socket.io client |
| uri | The URI of the socket.io server |
- Returns
- An initialized SIOClient if connected successfully, otherwise NULL
| local connect |
( |
local |
delegate, |
|
|
local |
uri |
|
) |
| |
|
static |
Static client creation method, similar to socketio.connect(uri) in JS.
- Parameters
-
| delegate | The delegate which want to receive events from the socket.io client |
| uri | The URI of the socket.io server |
- Returns
- An initialized SIOClient if connected successfully, otherwise NULL
| static void destroyInstance |
( |
) | |
|
|
static |
| local destroyInstance |
( |
) | |
|
|
static |
| friend class SIOClientImpl |
|
friend |
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x-develop/cocos/network/SocketIO.h