Skip to main content
Module

std/node/inspector.ts>Session

Deno standard library
Go to Latest
class Session
extends EventEmitter
import { Session } from "https://deno.land/std@0.145.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,
): void

Posts a message to the inspector back-end.

[onMessageSymbol](_message: string)