Module

std/node/inspector.ts>Session

Deno standard library
Go to Latest
class Session
extends EventEmitter
import { Session } from "https://dotland.deno.dev/std@0.177.0/node/inspector.ts";

Constructors

new
Session()

Properties

[connectionSymbol]: null
[messageCallbacksSymbol]: Map<string, (e: Error) => void>
[nextIdSymbol]: number

Methods

Connects the session to the inspector back-end.

Connects the session to the main thread inspector back-end.

Immediately closes the session, all pending message callbacks will be called with an error.

post(
_method: string,
_params?: Record<string, unknown>,
_callback?: (...args: unknown[]) => void,
)

Posts a message to the inspector back-end.

[onMessageSymbol](_message: string)