Class WebSocket08FrameEncoder

    • Field Detail

      • GATHERING_WRITE_THRESHOLD

        private static final int GATHERING_WRITE_THRESHOLD
        The size threshold for gathering writes. Non-Masked messages bigger than this size will be sent fragmented as a header and a content ByteBuf whereas messages smaller than the size will be merged into a single buffer and sent at once.
        Masked messages will always be sent at once.
        See Also:
        Constant Field Values
      • maskPayload

        private final boolean maskPayload
    • Constructor Detail

      • WebSocket08FrameEncoder

        public WebSocket08FrameEncoder​(boolean maskPayload)
        Constructor
        Parameters:
        maskPayload - Web socket clients must set this to true to mask payload. Server implementations must set this to false.