code: def handle_packet(self, packet):
          
  
          if not isinstance(packet, RTMPPacket):
              raise ValueError("A RTMPPacket argument is required")
  
          return librtmp.RTMP_ClientPacket(self.rtmp, packet.packet)
docs: Lets librtmp look at a packet and send a response
             if needed.