1 #ifndef NDMSPC_NWS_CLIENT_INFO_H
2 #define NDMSPC_NWS_CLIENT_INFO_H
Holds per-client data for WebSocket connections.
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.