code: @Override
      public void messageSent(IoSession session, Object message) throws Exception {
          log.debug("messageSent");
          if (message instanceof Packet) {
              String sessionId = (String) session.getAttribute(RTMPConnection.RTMP_SESSION_ID);
              log.trace("Session id: {}", sessionId);
              RTMPMinaConnection conn = (RTMPMinaConnection) getConnectionManager(session).getConnectionBySessionId(sessionId);
              handler.messageSent(conn, (Packet) message);
          } else {
              log.trace("messageSent: {}", Hex.encodeHexString(((IoBuffer) message).array()));
          }
      }
docs: {@inheritDoc}