sptk2 logo
SPTK Home Page
Public Types | Public Member Functions | Static Public Member Functions | List of all members
sptk::WSWebSocketsMessage Class Reference

#include <WSWebSocketsProtocol.h>

Public Types

enum class  OpCode : uint8_t {
  CONTINUATION = 0 , TEXT = 1 , BINARY = 2 , CONNECTION_CLOSE = 8 ,
  PING1 = 9 , PING2 = 10
}
 

Public Member Functions

 WSWebSocketsMessage ()=default
 Default constructor.
 
const Bufferpayload () const
 Return message payload buffer.
 
void decode (const char *incomingData)
 
OpCode opcode () const
 Get operation code.
 
void opcode (OpCode code)
 Set operation code.
 
uint32_t statusCode () const
 Operation status code.
 
bool isFinal () const
 'message is final' flag
 

Static Public Member Functions

static void encode (const String &payload, OpCode opcode, bool finalMessage, Buffer &output)
 

Detailed Description

WebSockets protocol message

Provides WebSockets message encode and decode methods


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

Fri Oct 14 2022 09:58:49: SPTK 5.4.1