code: public List<?> decode(IoBuffer data) {
          log.debug("decode - state: {}", state);
          if (closing || state.getState() == RTMP.STATE_DISCONNECTED) {
              // Connection is being closed, don't decode any new packets
              return Collections.EMPTY_LIST;
          }
          readBytes.addAndGet(data.limit());
          buffer.put(data);
          buffer.flip();
          return decoder.decodeBuffer(this, buffer);
      }
docs: Decode data sent by the client.
  
  @param data
  the data to decode
  @return a list of decoded objects