websocket namespace

Contents

This namespace contains an implementation of the WebSocket protocol. See rfc 6455 for more details.

Classes

template<typename Connection, bool CLIENT = false, typename Allocator = std::allocator<uint8_t>>
class connection
template<bool CLIENT, bool STREAMING = true>
class parser

Enums

enum FRAME: uint8_t { CONTINUATION = 0x0, TEXT, BINARY, CLOSE = 0x8, PING, PONG }
enum CLOSE_STATUS: uint16_t { CLOSE_NORMAL = 1000, CLOSE_GONE_AWAY, CLOSE_ERROR, CLOSE_BAD_TYPE, CLOSE_NONE = 1005, CLOSE_BAD_DATA = 1007, CLOSE_POLICY, CLOSE_EXTENSION = 1010, CLOSE_UNEXPECTED }

Enum documentation

enum websocket::FRAME: uint8_t

Frame opcodes defined in the WebSocket protocol.

enum websocket::CLOSE_STATUS: uint16_t

Close reasons defined in the WebSocket protocol.