Skip to main content
Session.prototype.disconnect - inspector/promises - Node documentation
method Session.prototype.disconnect

Usage in Deno

import { Session } from "node:inspector/promises";
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