Skip to main content
The isConnected() method provides a quick way to verify whether your current sandbox instance is actively connected to Fermion’s infrastructure.

isConnected()

Description: Checks if the WebSocket connection to the sandbox is currently active. Parameters: None Returns: boolean - true if connected, false otherwise Example:
console.log(sandbox.isConnected()) // false

await sandbox.create({ shouldBackupFilesystem: false })
console.log(sandbox.isConnected()) // true