code: def forward_packet(self, writer, packet, raw_packet):
          
          peer = writer.get_extra_info('peername')
          log.debug(' %s:%s: forwarding data: %s', peer[0], peer[1], packet)
          if 'command' in packet:
              packet_id = serialize_packet_id(packet)
              command = packet['command']
              ack = yield from self.protocol.send_command_ack(
                  packet_id, command)
              if ack:
                  writer.write("20;00;OK;".encode() + CRLF)
              for _ in range(DEFAULT_SIGNAL_REPETITIONS-1):
                  yield from self.protocol.send_command_ack(
                      packet_id, command)
          else:
              self.protocol.send_raw_packet(raw_packet)
docs: Forward packet from client to RFLink.