code: async def _send_packet(self, pkt):
          
          if self.state != 'connected':
              return
          await self.queue.put(pkt)
          self.logger.info(
              'Sending packet %s data %s',
              packet.packet_names[pkt.packet_type],
              pkt.data if not isinstance(pkt.data, bytes) else '<binary>')
docs: Queue a packet to be sent to the server.