code: public static WebSocketFrame createBinaryFrame(byte[] payload)
      {
          return new WebSocketFrame()
              .setFin(true)
              .setOpcode(BINARY)
              .setPayload(payload);
      }
docs: Create a binary frame.
  
  @param payload
  The payload for a newly created frame.
  
  @return
  A WebSocket frame whose FIN bit is true, opcode is
  {@link WebSocketOpcode#BINARY BINARY} and payload is
  the given one.