code: def get_connection_state(self, connection: str) -> Dict[str, Any]:
          
          if connection not in self.connections:
              raise ConnectionNotOpen(connection)
  
          return self.connections[connection].state
docs: For an already established connection return its state.