node-libcurl

    Enumeration CurlWs

    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_TEXT becomes CurlWs.Text

    Index

    Enumeration Members

    Enumeration Members

    Binary: 2

    The frame contains binary data.

    Close: 8

    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.

    Cont: 4

    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).

    Offset: 64

    Used when sending partial frames. The provided data is only a partial frame and there is more coming in a following call to wsSend().

    Ping: 16

    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.

    Pong: 32

    This is a pong frame. It may contain up to 125 bytes of payload.

    Text: 1

    The frame contains text data. Note that libcurl does not verify that the content is valid UTF-8.

    MMNEPVFCICPMFPCPTTAAATR