sim2bot.is_bridge_running¶
is_bridge_running(url: str = DEFAULT_CONTROL_URL, timeout: float = 0.5) -> bool
¶
Check whether the bridge health endpoint responds successfully.
Parameters:
-
url(str, default:DEFAULT_CONTROL_URL) –Bridge control WebSocket URL used to derive the health URL.
-
timeout(float, default:0.5) –HTTP timeout in seconds.
Returns:
-
bool–Trueonly when the endpoint responds with HTTP 200.
Source code in sim2bot/bridge.py
Practical examples¶
Examples use objects discovered from the current scene rather than hard-coded robot metadata.
Check the default bridge
Guidance¶
Usage tip
This checks bridge health only; it does not prove that a browser simulator is connected.