code: public byte[] receiveMessages()
      {
          try
          {
              final byte[] data;
              final int size = in.available();
              if (size <= 0)
              {
                  data = null;
              }
              else
              {
                  data = new byte[size];
                  in.readFully(data);
              }
              return data;
          }
          catch (final IOException exception)
          {
              Verbose.exception(exception);
              return new byte[0];
          }
      }
docs: Receive messages data from the client.
  
  @return The messages data.