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
    • 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.
      • WebSocket08FrameEncoder

        public WebSocket08FrameEncoder​(WebSocketFrameMaskGenerator maskGenerator)
        Constructor
        Parameters:
        maskGenerator - Web socket clients must set this to non null to mask payload. Server implementations must set this to null.
    • Method Detail

      • addBuffers

        private static void addBuffers​(ByteBuf buf,
                                       ByteBuf data,
                                       java.util.List<java.lang.Object> out)