#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 Buffer & | payload () 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) |
WebSockets protocol message
Provides WebSockets message encode and decode methods