MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _try_version_info_callback

Method _try_version_info_callback

unity_cli/client.py:407–418  ·  view source on GitHub ↗

Invoke version info callback once.

(self, response: dict[str, Any])

Source from the content-addressed store, hash-verified

405 return data
406
407 def _try_version_info_callback(self, response: dict[str, Any]) -> None:
408 """Invoke version info callback once."""
409 if not self.on_version_info or self._version_info_called:
410 return
411 relay_version = response.get("relay_version", "")
412 bridge_version = response.get("bridge_version", "")
413 if relay_version or bridge_version:
414 try:
415 self.on_version_info(relay_version, bridge_version)
416 except Exception:
417 pass
418 self._version_info_called = True
419
420 def _send_admin_message(self, message: dict[str, Any]) -> dict[str, Any]:
421 """Send an admin message (LIST_INSTANCES, SET_DEFAULT) without retry.

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected