code: public static void sendCloseBlocking(final ByteBuffer data, final WebSocketChannel wsChannel) throws IOException {
          sendCloseBlocking(new CloseMessage(data), wsChannel);
      }
docs: Sends a complete close message, invoking the callback when complete
  
  @param data The data to send
  @param wsChannel The web socket channel