is_connected() method provides a quick way to verify whether your current sandbox instance is actively connected to Fermion’s backend infrastructure.
This can be useful for checking the session state before running commands, writing files, or performing other operations that require an active connection.
is_connected() -> bool
Description:Checks if the WebSocket connection to the sandbox is currently active.
Parameters:
None
Returns:
bool : True if the sandbox is connected, False otherwise.
