API Documentation
|
Provides the ability to communicate over a network using SocketIO (https://socket.io/docs/v4/) More...
#include <SocketIO.h>
Public Member Functions | |
void | addChannel (DynamicPointer< SocketIOChannel > &channel) |
void | close () |
bool | connect (const String &url="http://ndevr.org:3000") |
DynamicPointer< SocketIOChannel > | createChannel (const String &name, std::function< void(const char *data, uint04 size)> data_callback, UUID target=Constant< UUID >::Invalid) |
DynamicPointer< SocketIOChannel > | createChannel (const String &name, UUID target=Constant< UUID >::Invalid) |
bool | isConnected () const |
const Dictionary< UUID, String > & | onlineClients () const |
void | removeChannel (DynamicPointer< SocketIOChannel > &channel) |
void | setName (const String &name) |
void | setRunID (const UUID &run_id) |
const String & | url () const |
~SocketIO () | |
Static Public Member Functions | |
static DynamicPointer< SocketIO > | GetSocketIO (const String &url="http://ndevr.org:3000") |
Protected Member Functions | |
SocketIO (QObject *parent=0) | |
Provides the ability to communicate over a network using SocketIO (https://socket.io/docs/v4/)
|
explicitprotected |
~SocketIO | ( | ) |
void addChannel | ( | DynamicPointer< SocketIOChannel > & | channel | ) |
void close | ( | ) |
bool connect | ( | const String & | url = "http://ndevr.org:3000" | ) |
DynamicPointer< SocketIOChannel > createChannel | ( | const String & | name, |
std::function< void(const char *data, uint04 size)> | data_callback, | ||
UUID | target = Constant< UUID >::Invalid ) |
DynamicPointer< SocketIOChannel > createChannel | ( | const String & | name, |
UUID | target = Constant< UUID >::Invalid ) |
|
static |
|
inline |
const Dictionary< UUID, String > & onlineClients | ( | ) | const |
void removeChannel | ( | DynamicPointer< SocketIOChannel > & | channel | ) |
void setName | ( | const String & | name | ) |
void setRunID | ( | const UUID & | run_id | ) |
|
inline |