mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
25 lines
517 B
C++
25 lines
517 B
C++
#ifndef _HP_USR_USER_COMM_SESSION_
|
|
#define _HP_USR_USER_COMM_SESSION_
|
|
|
|
#include "../pchheader.hpp"
|
|
#include "../comm/comm_session.hpp"
|
|
|
|
namespace usr
|
|
{
|
|
/**
|
|
* Represents a WebSocket connection to a HotPocket user.
|
|
*/
|
|
class user_comm_session : public comm::comm_session
|
|
{
|
|
using comm_session::comm_session; // Inherit constructors.
|
|
|
|
private:
|
|
int handle_connect();
|
|
int handle_message(std::string_view msg);
|
|
void handle_close();
|
|
};
|
|
|
|
} // namespace usr
|
|
|
|
#endif
|