Skylicht Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
SocketIO
CWebsocket.h
1
#include "IWebsocket.h"
2
3
#ifndef __EMSCRIPTEN__
4
5
#include <easywsclient/easywsclient.hpp>
6
7
namespace
Skylicht
8
{
9
namespace
Network
10
{
11
class
CWebsocket :
public
IWebsocket
12
{
13
protected
:
14
easywsclient::WebSocket* m_ws;
15
16
public
:
17
CWebsocket();
18
19
virtual
~CWebsocket();
20
21
virtual
bool
connect(
const
std::string& url,
const
std::string& origin);
22
23
virtual
void
send(
const
std::string& message);
24
25
virtual
void
poll(
int
timeout = 0);
26
27
virtual
void
dispatch(std::function<
void
(
const
std::string&)> callable);
28
29
virtual
bool
isClosed();
30
};
31
}
32
}
33
34
#endif
Skylicht
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition
AudioDebugLog.h:29
Generated by
1.17.0