1 #include "NWsClientInfo.h"
7 : fWsId(0), fUsername(
""), fMessageCount(0), fConnectedAt(std::chrono::system_clock::now())
13 : fWsId(id), fUsername(username), fMessageCount(0), fConnectedAt(std::chrono::system_clock::now())
std::string fUsername
Username associated with the client.
ULong_t GetWsId() const
Get the WebSocket client ID.
int GetMessageCount() const
Get the message count for the client.
NWsClientInfo()
Default constructor.
ULong_t fWsId
Unique WebSocket client ID.
std::chrono::system_clock::time_point GetConnectedAt() const
Get the connection start time for the client.
std::chrono::system_clock::time_point fConnectedAt
Connection start time.
const std::string & GetUsername() const
Get the username of the client.
void SetUsername(const std::string &username)
Set the username for the client.
int fMessageCount
Number of messages sent/received.
void IncrementMessageCount()
Increment the message count for the client.