MCPcopy Create free account
hub / github.com/Surfer-Org/Protocol / _check_connection

Method _check_connection

sdk/python/surfer_protocol/client.py:9–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7 self._check_connection()
8
9 def _check_connection(self):
10 try:
11 # Try to connect to the desktop app
12 response = self.session.get(f"{self.base_url}/health")
13 response.raise_for_status()
14 except requests.exceptions.RequestException as e:
15 raise ConnectionError("Couldn't connect to the Surfer Desktop app. Is it running?") from e
16
17
18 def get(self, platform_id: str) -> dict:

Callers 1

__init__Method · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected