Skip to content

DesktopCdpTransport.dispose method

DesktopCdpTransport › dispose

Disposes of the active WebSocket connection and, in owned-instance mode, kills the owned Obsidian process and removes its isolated user-data directory.

The removal is retried because Windows briefly holds the just-killed process's file handles, which would otherwise fail rmSync with EPERM.

Signature:

dispose(): Promise<void>

Returns: Promise<void>