WebSocketFrameDecoder

    An inbound ChannelHandler that deserializes websocket frames into a structured format for further processing.

    WebSocketFrameDecoder.swift:227
    final class WebSocketFrameDecoder

    This decoder has limited enforcement of compliance to RFC 6455. In particular, to guarantee that the decoder can handle arbitrary extensions, only normative MUST/MUST NOTs that do not relate to extensions (e.g. the requirement that control frames not have lengths larger than 125 bytes) are enforced by this decoder.

    This decoder does not have any support for decoding extensions. If you wish to support extensions, you should implement a message-to-message decoder that performs the appropriate frame transformation as needed. All the frame data is assumed to be application data by this parser.

    Citizens in NIOWebSocket

    Conformances

    Typealiases

    Type members

    Instance members

    Instance features