code: boolean processNextFrame() throws IOException {
      try {
        reader.processNextFrame();
        return receivedCloseCode == -1;
      } catch (Exception e) {
        failWebSocket(e, null);
        return false;
      }
    }
docs: For testing: receive a single frame and return true if there are more frames to read. Invoked
  only by the reader thread.