38#define WS_CLOSE_NORMAL 1000
39#define WS_CLOSE_GOING_AWAY 1001
40#define WS_CLOSE_PROTOCOL_ERROR 1002
41#define WS_CLOSE_TOO_LARGE 1009
42#define WS_CLOSE_ABNORMAL 1006
45#define WS_DEFAULT_MAX_QUEUED_BYTES (1u * 1024u * 1024u)
46#define WS_MAX_MESSAGE_BYTES (16u * 1024u * 1024u)
49#define WS_RECV_CHUNK_SIZE 8192
64 std::vector<std::pair<std::string, std::string> >
mHeaders;
WsError
Definition WebSocketTypes.h:25
#define WS_DEFAULT_MAX_QUEUED_BYTES
Definition WebSocketTypes.h:45
WsState
Definition WebSocketTypes.h:17
const char * WsErrorToString(WsError err)
Definition WebSocketTypes.h:74
Definition WebSocketTypes.h:61
std::string mUrl
Definition WebSocketTypes.h:62
std::vector< std::string > mProtocols
Definition WebSocketTypes.h:63
std::vector< std::pair< std::string, std::string > > mHeaders
Definition WebSocketTypes.h:64
uint32_t mMaxQueuedBytes
Definition WebSocketTypes.h:65
Definition WebSocketTypes.h:69
bool mBinary
Definition WebSocketTypes.h:71
std::vector< uint8_t > mData
Definition WebSocketTypes.h:70
Definition WebSocketTypes.h:52
std::string mHost
Definition WebSocketTypes.h:54
std::string mScheme
Definition WebSocketTypes.h:53
uint16_t mPort
Definition WebSocketTypes.h:56
bool mSecure
Definition WebSocketTypes.h:57
std::string mResource
Definition WebSocketTypes.h:55