code: public void webSocketMessaged(final ByteBuffer messagePart,
              final boolean last) {
  
          wsMessageChunks.add(messagePart);
  
          if (last) {
              final int totalCapacity = wsMessageChunksTotalCapacity.getAndSet(0)
                      + messagePart.capacity();
  
              browserPage.webSocketMessaged(
                      pollAndConvertToByteArray(totalCapacity, wsMessageChunks));
          } else {
              wsMessageChunksTotalCapacity.addAndGet(messagePart.capacity());
          }
  
      }
docs: This method will be useful when the WebSocket server receives messages as
  chucks. A WebSocket server may have a max size of byte array that can be
  sent or receive as a single object. eg: websocket
  session.getMaxBinaryMessageBufferSize may limit it. In such case this
  method can be used to get the complete data as chucks.
  
  @param messagePart
  message part
  @param last
  true if it is the last part of the message
  @since 3.0.2