GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
httplib::ws::WebSocket Class Reference

#include <httplib.h>

Public Member Functions

 WebSocket (const WebSocket &)=delete
WebSocket & operator= (const WebSocket &)=delete
 ~WebSocket ()
ReadResult read (std::string &msg)
bool send (const std::string &data)
bool send (const char *data, size_t len)
void close (CloseStatus status=CloseStatus::Normal, const std::string &reason="")
const Request & request () const
bool is_open () const

Friends

class httplib::Server
class WebSocketClient

Constructor & Destructor Documentation

◆ WebSocket()

httplib::ws::WebSocket::WebSocket ( const WebSocket & )
delete
Here is the caller graph for this function:

◆ ~WebSocket()

httplib::ws::WebSocket::~WebSocket ( )
inline
Here is the caller graph for this function:

Member Function Documentation

◆ close()

void httplib::ws::WebSocket::close ( CloseStatus status = CloseStatus::Normal,
const std::string & reason = "" )
inline
Here is the caller graph for this function:

◆ is_open()

bool httplib::ws::WebSocket::is_open ( ) const
inline
Here is the caller graph for this function:

◆ operator=()

WebSocket & httplib::ws::WebSocket::operator= ( const WebSocket & )
delete

◆ read()

ReadResult httplib::ws::WebSocket::read ( std::string & msg)
inline
Here is the caller graph for this function:

◆ request()

const Request & httplib::ws::WebSocket::request ( ) const
inline
Here is the caller graph for this function:

◆ send() [1/2]

bool httplib::ws::WebSocket::send ( const char * data,
size_t len )
inline

◆ send() [2/2]

bool httplib::ws::WebSocket::send ( const std::string & data)
inline
Here is the caller graph for this function:

◆ httplib::Server

friend class httplib::Server
friend

◆ WebSocketClient

friend class WebSocketClient
friend

The documentation for this class was generated from the following file: