The frame contains binary data.
This is a close frame. It may contain a 2-byte unsigned integer in network byte order that indicates the close reason and may additionally contain up to 123 bytes of further textual payload.
This is a continuation frame. It implies there is another fragment coming as part of the same message. Only one fragmented message can be transmitted at a time, but it may be interrupted by control frames (Close, Ping, Pong).
Used when sending partial frames. The provided data is only a partial frame and there is more coming in a following call to wsSend().
This is a ping frame. It may contain up to 125 bytes of payload. libcurl automatically responds with a pong message unless disabled via WS_OPTIONS.
This is a pong frame. It may contain up to 125 bytes of payload.
The frame contains text data. Note that libcurl does not verify that the content is valid UTF-8.
WebSocket frame flags
These flags are used to identify the type of WebSocket frame and its properties. The frame type flags (Text, Binary, Close, Ping, Pong) are mutually exclusive.
CURLWS_TEXTbecomesCurlWs.Text