code: async def send_packed_command(self, command):
          "Send an already packed command to the Redis server"
          if not self._writer:
              await self.connect()
          try:
              if isinstance(command, str):
                  command = [command]
              self._writer.writelines(command)
          except asyncio.futures.TimeoutError:
              self.disconnect()
              raise TimeoutError("Timeout writing to socket")
          except Exception:
              e = sys.exc_info()[1]
              self.disconnect()
              if len(e.args) == 1:
                  errno, errmsg = 'UNKNOWN', e.args[0]
              else:
                  errno = e.args[0]
                  errmsg = e.args[1]
              raise ConnectionError("Error %s while writing to socket. %s." %
                                    (errno, errmsg))
          except:
              self.disconnect()
              raisync def send_packed_command(self, command):
          "Send an already packed command to the Redis server"
          if not self._writer:
              await self.connect()
          try:
              if isinstance(command, str):
                  command = [command]
              self._writer.writelines(command)
          except asyncio.futures.TimeoutError:
              self.disconnect()
              raise TimeoutError("Timeout writing to socket")
          except Exception:
              e = sys.exc_info()[1]
              self.disconnect()
              if len(e.args) == 1:
                  errno, errmsg = 'UNKNOWN', e.args[0]
              else:
                  errno = e.args[0]
                  errmsg = e.args[1]
              raise ConnectionError("Error %s while writing to socket. %s." %
                                    (errno, errmsg))
          except:
              self.disconnect()
              raise
docs: Send an already packed command to the Redis server