Symple module
Client::ClientData
ClientData
#include <src/symple/src/client/detail.h>Public Attributes
| Return | Name | Description |
|---|---|---|
Options | options | |
uv::Loop * | loop | |
http::ClientConnection::Ptr | ws | |
Roster | roster | |
std::string | ourID | |
std::unordered_set< std::string > | currentRooms | Authoritative rooms from welcome / acks. |
std::unordered_set< std::string > | desiredRooms | Rooms the client wants persisted across reconnects. |
std::unordered_set< std::string > | pendingJoins | Join requests sent but not yet acknowledged. |
std::unordered_set< std::string > | pendingLeaves | Leave requests sent but not yet acknowledged. |
int | announceStatus | |
Timer | reconnectTimer | |
int | reconnectCount | |
bool | wasOnline | |
bool | closing |
options
Options optionsloop
uv::Loop * loopws
http::ClientConnection::Ptr wsroster
Roster rosterourID
std::string ourIDcurrentRooms
std::unordered_set< std::string > currentRoomsAuthoritative rooms from welcome / acks.
desiredRooms
std::unordered_set< std::string > desiredRoomsRooms the client wants persisted across reconnects.
pendingJoins
std::unordered_set< std::string > pendingJoinsJoin requests sent but not yet acknowledged.
pendingLeaves
std::unordered_set< std::string > pendingLeavesLeave requests sent but not yet acknowledged.
announceStatus
int announceStatus = 0reconnectTimer
Timer reconnectTimerreconnectCount
int reconnectCount = 0wasOnline
bool wasOnline = falseclosing
bool closing = falsePublic Methods
| Return | Name | Description |
|---|---|---|
ClientData inline explicit |
ClientData
inline explicit
inline explicit ClientData(Options opts, uv::Loop * targetLoop)