Skip to main content
Session.prototype.disconnect - node__inspector.d.ts - Node documentation
method Session.prototype.disconnect

Usage in Deno

```typescript import { Session } from "node:node__inspector.d.ts"; ```
Session.prototype.disconnect(): void
Immediately close the session. All pending message callbacks will be called with an error. `session.connect()` will need to be called to be able to send messages again. Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.

Return Type

void