public static WebSocketFrameEncoder of(boolean maskPayload) {
        if (maskPayload) {
            return clientEncoder;
        } else {
            return serverEncoder;
        }
    }
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.<br>
Masked messages will always be sent at once.
core/src/main/java/com/linecorp/armeria/internal/common/websocket/WebSocketFrameEncoder.java