code: def handleConnectionState(self, msg):
          
          self.connected = not (msg.typeName == "error" and
                                msg.errorCode in dataTypes["DISCONNECT_ERROR_CODES"])
  
          if self.connected:
              self.connection_tracking["errors"] = []
              self.connection_tracking["disconnected"] = False
  
              if msg.typeName == dataTypes["MSG_CURRENT_TIME"] and not self.connection_tracking["connected"]:
                  self.log.info("[CONNECTION TO IB ESTABLISHED]")
                  self.connection_tracking["connected"] = True
                  self.ibCallback(caller="handleConnectionOpened", msg="<connectionOpened>")
          else:
              self.connection_tracking["connected"] = False
  
              if not self.connection_tracking["disconnected"]:
                  self.connection_tracking["disconnected"] = True
                  self.log.info("[CONNECTION TO IB LOST]")
docs: :Return: True if IBPy message `msg` indicates the connection is unavailable for any reason, else False.