_Session

external class _Session : EventEmitter(source)

The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.

Constructors

Link copied to clipboard
constructor()

Create a new instance of the inspector.Session class. The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.

Properties

Link copied to clipboard
val ConsoleMessageAddedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/console/MessageAddedEventDataType>>>
Link copied to clipboard
val DebuggerBreakpointResolvedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/debugger/BreakpointResolvedEventDataType>>>
Link copied to clipboard
val DebuggerPausedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/debugger/PausedEventDataType>>>
Link copied to clipboard
val DebuggerResumedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val DebuggerScriptFailedToParseEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/debugger/ScriptFailedToParseEventDataType>>>
Link copied to clipboard
val DebuggerScriptParsedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/debugger/ScriptParsedEventDataType>>>
Link copied to clipboard
val HeapProfilerAddHeapSnapshotChunkEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/heapProfiler/AddHeapSnapshotChunkEventDataType>>>
Link copied to clipboard
val HeapProfilerHeapStatsUpdateEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/heapProfiler/HeapStatsUpdateEventDataType>>>
Link copied to clipboard
val HeapProfilerLastSeenObjectIdEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/heapProfiler/LastSeenObjectIdEventDataType>>>
val HeapProfilerReportHeapSnapshotProgressEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/heapProfiler/ReportHeapSnapshotProgressEventDataType>>>
Link copied to clipboard
val HeapProfilerResetProfilesEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val inspectorNotificationEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<kotlin/Any>>>

This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called

Link copied to clipboard
val NetworkDataReceivedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/network/DataReceivedEventDataType>>>
Link copied to clipboard
val NetworkLoadingFailedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/network/LoadingFailedEventDataType>>>
Link copied to clipboard
val NetworkLoadingFinishedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/network/LoadingFinishedEventDataType>>>
Link copied to clipboard
val NetworkRequestWillBeSentEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/network/RequestWillBeSentEventDataType>>>
Link copied to clipboard
val NetworkResponseReceivedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/network/ResponseReceivedEventDataType>>>
Link copied to clipboard
val NodeRuntimeWaitingForDebuggerEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val NodeRuntimeWaitingForDisconnectEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val NodeTracingDataCollectedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/nodeTracing/DataCollectedEventDataType>>>
Link copied to clipboard
val NodeTracingTracingCompleteEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val NodeWorkerAttachedToWorkerEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/nodeWorker/AttachedToWorkerEventDataType>>>
Link copied to clipboard
val NodeWorkerDetachedFromWorkerEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/nodeWorker/DetachedFromWorkerEventDataType>>>
Link copied to clipboard
val NodeWorkerReceivedMessageFromWorkerEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/nodeWorker/ReceivedMessageFromWorkerEventDataType>>>
Link copied to clipboard
val ProfilerConsoleProfileFinishedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/profiler/ConsoleProfileFinishedEventDataType>>>
Link copied to clipboard
val ProfilerConsoleProfileStartedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/profiler/ConsoleProfileStartedEventDataType>>>
Link copied to clipboard
val RuntimeConsoleAPICalledEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/runtime/ConsoleAPICalledEventDataType>>>
Link copied to clipboard
val RuntimeExceptionRevokedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/runtime/ExceptionRevokedEventDataType>>>
Link copied to clipboard
val RuntimeExceptionThrownEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/runtime/ExceptionThrownEventDataType>>>
Link copied to clipboard
val RuntimeExecutionContextCreatedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/runtime/ExecutionContextCreatedEventDataType>>>
Link copied to clipboard
val RuntimeExecutionContextDestroyedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/runtime/ExecutionContextDestroyedEventDataType>>>
Link copied to clipboard
val RuntimeExecutionContextsClearedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val RuntimeInspectRequestedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/runtime/InspectRequestedEventDataType>>>
Link copied to clipboard
val TargetAttachedToTargetEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/target/AttachedToTargetEventDataType>>>
Link copied to clipboard
val TargetTargetCreatedEvent: EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<node/inspector/InspectorNotification<node/inspector/target/TargetCreatedEventDataType>>>

Functions

Link copied to clipboard
fun addListener(type: EventType, listener: EventListener)

Alias for emitter.on(eventName, listener).

fun addListener(event: String, listener: Function<Unit>)
Link copied to clipboard
fun connect()

Connects a session to the inspector back-end.

Link copied to clipboard

Connects a session to the inspector back-end. An exception will be thrown if this API was not called on a Worker thread.

Link copied to clipboard

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.

Link copied to clipboard
fun emit(type: EventType, vararg args: Any?): Boolean

Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

fun emit(event: ERROR CLASS: Symbol not found for js.symbol.Symbol, vararg args: Any?): Boolean

fun emit(event: String, vararg args: Any?): Boolean

This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called

Link copied to clipboard

Returns an array listing the events for which the emitter has registered listeners. The values in the array are strings or Symbols.

Link copied to clipboard

Returns the current max listener value for the EventEmitter which is either set by emitter.setMaxListeners(n) or defaults to {@link EventEmitter.defaultMaxListeners}.

Link copied to clipboard
fun listenerCount(type: EventType, listener: EventListener = definedExternally): Double

Returns the number of listeners listening for the event named eventName. If listener is provided, it will return how many times the listener is found in the list of the listeners of the event.

Link copied to clipboard

Returns a copy of the array of listeners for the event named eventName.

Link copied to clipboard
fun off(type: EventType, listener: EventListener)

Alias for emitter.removeListener().

Link copied to clipboard
fun on(type: EventType, listener: EventListener)

Adds the listener function to the end of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

fun on(event: String, listener: Function<Unit>)
Link copied to clipboard
fun once(type: EventType, listener: EventListener)

Adds a one-time listener function for the event named eventName. The next time eventName is triggered, this listener is removed and then invoked.

fun once(event: String, listener: Function<Unit>)

This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called

Link copied to clipboard
fun post(method: String, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: Any?) -> Unit = definedExternally)

Posts a message to the inspector back-end. callback will be notified when a response is received. callback is a function that accepts two optional arguments: error and message-specific result.

fun post(method: SessionMethod.CONSOLE_CLEARMESSAGES, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Does nothing.

fun post(method: SessionMethod.CONSOLE_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Disables console domain, prevents further console messages from being reported to the client.

fun post(method: SessionMethod.CONSOLE_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.

fun post(method: SessionMethod.DEBUGGER_CONTINUETOLOCATION, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_EVALUATEONCALLFRAME, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: EvaluateOnCallFrameReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_GETPOSSIBLEBREAKPOINTS, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetPossibleBreakpointsReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_GETSCRIPTSOURCE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetScriptSourceReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_GETSTACKTRACE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetStackTraceReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_PAUSEONASYNCCALL, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_REMOVEBREAKPOINT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_RESTARTFRAME, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: RestartFrameReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SEARCHINCONTENT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SearchInContentReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETASYNCCALLSTACKDEPTH, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETBLACKBOXEDRANGES, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETBLACKBOXPATTERNS, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETBREAKPOINT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SetBreakpointReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETBREAKPOINTBYURL, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SetBreakpointByUrlReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETBREAKPOINTSACTIVE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETPAUSEONEXCEPTIONS, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETRETURNVALUE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETSCRIPTSOURCE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SetScriptSourceReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETSKIPALLPAUSES, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_SETVARIABLEVALUE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_STEPINTO, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_ADDINSPECTEDHEAPOBJECT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_COLLECTGARBAGE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_GETHEAPOBJECTID, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetHeapObjectIdReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_GETOBJECTBYHEAPOBJECTID, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetObjectByHeapObjectIdReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_GETSAMPLINGPROFILE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetSamplingProfileReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_STARTSAMPLING, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_STARTTRACKINGHEAPOBJECTS, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_STOPSAMPLING, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: StopSamplingReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_STOPTRACKINGHEAPOBJECTS, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_TAKEHEAPSNAPSHOT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.NETWORK_GETREQUESTPOSTDATA, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetRequestPostDataReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.NETWORK_GETRESPONSEBODY, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetResponseBodyReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.NETWORK_STREAMRESOURCECONTENT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: StreamResourceContentReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.NODERUNTIME_NOTIFYWHENWAITINGFORDISCONNECT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.NODETRACING_START, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.NODEWORKER_DETACH, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.NODEWORKER_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.NODEWORKER_SENDMESSAGETOWORKER, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.PROFILER_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.PROFILER_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.PROFILER_SETSAMPLINGINTERVAL, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.PROFILER_START, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.PROFILER_STARTPRECISECOVERAGE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.PROFILER_STOP, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: StopReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_AWAITPROMISE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: AwaitPromiseReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_CALLFUNCTIONON, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: CallFunctionOnReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_COMPILESCRIPT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: CompileScriptReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_EVALUATE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: EvaluateReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_GETPROPERTIES, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetPropertiesReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_GLOBALLEXICALSCOPENAMES, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GlobalLexicalScopeNamesReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_QUERYOBJECTS, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: QueryObjectsReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_RELEASEOBJECT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_RELEASEOBJECTGROUP, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_RUNSCRIPT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: RunScriptReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_SETCUSTOMOBJECTFORMATTERENABLED, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.TARGET_SETAUTOATTACH, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: String, params: Any = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: Any?) -> Unit = definedExternally)
fun post(method: SessionMethod.DEBUGGER_PAUSEONASYNCCALL, params: PauseOnAsyncCallParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_GETHEAPOBJECTID, params: GetHeapObjectIdParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetHeapObjectIdReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_GETOBJECTBYHEAPOBJECTID, params: GetObjectByHeapObjectIdParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetObjectByHeapObjectIdReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_STARTSAMPLING, params: StartSamplingParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_STARTTRACKINGHEAPOBJECTS, params: StartTrackingHeapObjectsParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_STOPTRACKINGHEAPOBJECTS, params: StopTrackingHeapObjectsParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.HEAPPROFILER_TAKEHEAPSNAPSHOT, params: TakeHeapSnapshotParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_QUERYOBJECTS, params: QueryObjectsParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: QueryObjectsReturnType) -> Unit = definedExternally)
fun post(method: SessionMethod.RUNTIME_SETCUSTOMOBJECTFORMATTERENABLED, params: SetCustomObjectFormatterEnabledParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)
fun post(method: SessionMethod.TARGET_SETAUTOATTACH, params: SetAutoAttachParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

fun post(method: SessionMethod.DEBUGGER_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Disables debugger for given page.

fun post(method: SessionMethod.DEBUGGER_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: EnableReturnType) -> Unit = definedExternally)

Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.

fun post(method: SessionMethod.DEBUGGER_PAUSE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Stops on the next JavaScript statement.

fun post(method: SessionMethod.DEBUGGER_RESUME, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Resumes JavaScript execution.

fun post(method: SessionMethod.DEBUGGER_SCHEDULESTEPINTOASYNC, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.

fun post(method: SessionMethod.DEBUGGER_STEPOUT, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Steps out of the function call.

fun post(method: SessionMethod.DEBUGGER_STEPOVER, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Steps over the statement.

fun post(method: SessionMethod.NETWORK_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Disables network tracking, prevents network events from being sent to the client.

fun post(method: SessionMethod.NETWORK_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enables network tracking, network events will now be delivered to the client.

fun post(method: SessionMethod.NODERUNTIME_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Disable NodeRuntime events

fun post(method: SessionMethod.NODERUNTIME_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enable the NodeRuntime events except by NodeRuntime.waitingForDisconnect.

fun post(method: SessionMethod.NODETRACING_GETCATEGORIES, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetCategoriesReturnType) -> Unit = definedExternally)

Gets supported tracing categories.

fun post(method: SessionMethod.NODETRACING_STOP, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Stop trace events collection. Remaining collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.

fun post(method: SessionMethod.NODEWORKER_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Detaches from all running workers and disables attaching to new workers as they are started.

fun post(method: SessionMethod.PROFILER_GETBESTEFFORTCOVERAGE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetBestEffortCoverageReturnType) -> Unit = definedExternally)

Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.

fun post(method: SessionMethod.PROFILER_STOPPRECISECOVERAGE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.

fun post(method: SessionMethod.PROFILER_TAKEPRECISECOVERAGE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: TakePreciseCoverageReturnType) -> Unit = definedExternally)

Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.

fun post(method: SessionMethod.RUNTIME_DISABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Disables reporting of execution contexts creation.

fun post(method: SessionMethod.RUNTIME_DISCARDCONSOLEENTRIES, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Discards collected exceptions and console API calls.

fun post(method: SessionMethod.RUNTIME_ENABLE, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context.

fun post(method: SessionMethod.RUNTIME_RUNIFWAITINGFORDEBUGGER, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Tells inspected instance to run if it was waiting for debugger to attach.

fun post(method: SessionMethod.SCHEMA_GETDOMAINS, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetDomainsReturnType) -> Unit = definedExternally)

Returns supported domains.

fun post(method: SessionMethod.DEBUGGER_CONTINUETOLOCATION, params: ContinueToLocationParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Continues execution until specific location is reached.

fun post(method: SessionMethod.DEBUGGER_EVALUATEONCALLFRAME, params: EvaluateOnCallFrameParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: EvaluateOnCallFrameReturnType) -> Unit = definedExternally)

Evaluates expression on a given call frame.

fun post(method: SessionMethod.DEBUGGER_GETPOSSIBLEBREAKPOINTS, params: GetPossibleBreakpointsParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetPossibleBreakpointsReturnType) -> Unit = definedExternally)

Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.

fun post(method: SessionMethod.DEBUGGER_GETSCRIPTSOURCE, params: GetScriptSourceParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetScriptSourceReturnType) -> Unit = definedExternally)

Returns source for the script with given id.

fun post(method: SessionMethod.DEBUGGER_GETSTACKTRACE, params: GetStackTraceParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetStackTraceReturnType) -> Unit = definedExternally)

Returns stack trace with given stackTraceId.

fun post(method: SessionMethod.DEBUGGER_REMOVEBREAKPOINT, params: RemoveBreakpointParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Removes JavaScript breakpoint.

fun post(method: SessionMethod.DEBUGGER_RESTARTFRAME, params: RestartFrameParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: RestartFrameReturnType) -> Unit = definedExternally)

Restarts particular call frame from the beginning.

fun post(method: SessionMethod.DEBUGGER_SEARCHINCONTENT, params: SearchInContentParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SearchInContentReturnType) -> Unit = definedExternally)

Searches for given string in script content.

fun post(method: SessionMethod.DEBUGGER_SETASYNCCALLSTACKDEPTH, params: SetAsyncCallStackDepthParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enables or disables async call stacks tracking.

fun post(method: SessionMethod.DEBUGGER_SETBLACKBOXEDRANGES, params: SetBlackboxedRangesParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.

fun post(method: SessionMethod.DEBUGGER_SETBLACKBOXPATTERNS, params: SetBlackboxPatternsParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.

fun post(method: SessionMethod.DEBUGGER_SETBREAKPOINT, params: SetBreakpointParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SetBreakpointReturnType) -> Unit = definedExternally)

Sets JavaScript breakpoint at a given location.

fun post(method: SessionMethod.DEBUGGER_SETBREAKPOINTBYURL, params: SetBreakpointByUrlParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SetBreakpointByUrlReturnType) -> Unit = definedExternally)

Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads.

fun post(method: SessionMethod.DEBUGGER_SETBREAKPOINTSACTIVE, params: SetBreakpointsActiveParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Activates / deactivates all breakpoints on the page.

fun post(method: SessionMethod.DEBUGGER_SETPAUSEONEXCEPTIONS, params: SetPauseOnExceptionsParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none.

fun post(method: SessionMethod.DEBUGGER_SETRETURNVALUE, params: SetReturnValueParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Changes return value in top frame. Available only at return break position.

fun post(method: SessionMethod.DEBUGGER_SETSCRIPTSOURCE, params: SetScriptSourceParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: SetScriptSourceReturnType) -> Unit = definedExternally)

Edits JavaScript source live.

fun post(method: SessionMethod.DEBUGGER_SETSKIPALLPAUSES, params: SetSkipAllPausesParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).

fun post(method: SessionMethod.DEBUGGER_SETVARIABLEVALUE, params: SetVariableValueParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.

fun post(method: SessionMethod.DEBUGGER_STEPINTO, params: StepIntoParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Steps into the function call.

fun post(method: SessionMethod.HEAPPROFILER_ADDINSPECTEDHEAPOBJECT, params: AddInspectedHeapObjectParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enables console to refer to the node with given id via

$x (see Command Line API for more details $

x functions).

fun post(method: SessionMethod.NETWORK_GETREQUESTPOSTDATA, params: GetRequestPostDataParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetRequestPostDataReturnType) -> Unit = definedExternally)

Returns post data sent with the request. Returns an error when no data was sent with the request.

fun post(method: SessionMethod.NETWORK_GETRESPONSEBODY, params: GetResponseBodyParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetResponseBodyReturnType) -> Unit = definedExternally)

Returns content served for the given request.

fun post(method: SessionMethod.NETWORK_STREAMRESOURCECONTENT, params: StreamResourceContentParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: StreamResourceContentReturnType) -> Unit = definedExternally)

Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.

fun post(method: SessionMethod.NODERUNTIME_NOTIFYWHENWAITINGFORDISCONNECT, params: NotifyWhenWaitingForDisconnectParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enable the NodeRuntime.waitingForDisconnect.

fun post(method: SessionMethod.NODETRACING_START, params: StartParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Start trace events collection.

fun post(method: SessionMethod.NODEWORKER_DETACH, params: DetachParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Detached from the worker with given sessionId.

fun post(method: SessionMethod.NODEWORKER_ENABLE, params: EnableParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Instructs the inspector to attach to running workers. Will also attach to new workers as they start

fun post(method: SessionMethod.NODEWORKER_SENDMESSAGETOWORKER, params: SendMessageToWorkerParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Sends protocol message over session with given id.

fun post(method: SessionMethod.PROFILER_SETSAMPLINGINTERVAL, params: SetSamplingIntervalParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

fun post(method: SessionMethod.PROFILER_STARTPRECISECOVERAGE, params: StartPreciseCoverageParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.

fun post(method: SessionMethod.RUNTIME_AWAITPROMISE, params: AwaitPromiseParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: AwaitPromiseReturnType) -> Unit = definedExternally)

Add handler to promise with given promise object id.

fun post(method: SessionMethod.RUNTIME_CALLFUNCTIONON, params: CallFunctionOnParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: CallFunctionOnReturnType) -> Unit = definedExternally)

Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

fun post(method: SessionMethod.RUNTIME_COMPILESCRIPT, params: CompileScriptParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: CompileScriptReturnType) -> Unit = definedExternally)

Compiles expression.

fun post(method: SessionMethod.RUNTIME_EVALUATE, params: EvaluateParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: EvaluateReturnType) -> Unit = definedExternally)

Evaluates expression on global object.

fun post(method: SessionMethod.RUNTIME_GETPROPERTIES, params: GetPropertiesParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GetPropertiesReturnType) -> Unit = definedExternally)

Returns properties of a given object. Object group of the result is inherited from the target object.

fun post(method: SessionMethod.RUNTIME_GLOBALLEXICALSCOPENAMES, params: GlobalLexicalScopeNamesParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: GlobalLexicalScopeNamesReturnType) -> Unit = definedExternally)

Returns all let, const and class variables from global scope.

fun post(method: SessionMethod.RUNTIME_RELEASEOBJECT, params: ReleaseObjectParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Releases remote object with given id.

fun post(method: SessionMethod.RUNTIME_RELEASEOBJECTGROUP, params: ReleaseObjectGroupParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??) -> Unit = definedExternally)

Releases all remote objects that belong to a given group.

fun post(method: SessionMethod.RUNTIME_RUNSCRIPT, params: RunScriptParameterType = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, params: RunScriptReturnType) -> Unit = definedExternally)

Runs script with given id in a given context.

Link copied to clipboard

Adds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

fun prependListener(event: String, listener: Function<Unit>)

This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called

Link copied to clipboard

Adds a one-timelistener function for the event named eventName to the beginning of the listeners array. The next time eventName is triggered, this listener is removed, and then invoked.

fun prependOnceListener(event: String, listener: Function<Unit>)

This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called

Link copied to clipboard

Returns a copy of the array of listeners for the event named eventName, including any wrappers (such as those created by .once()).

Link copied to clipboard
fun removeAllListeners(type: EventType = definedExternally)

Removes all listeners, or those of the specified eventName.

Link copied to clipboard
fun removeListener(type: EventType, listener: EventListener)

Removes the specified listener from the listener array for the event named eventName.

Link copied to clipboard

By default EventEmitters will print a warning if more than 10 listeners are added for a particular event. This is a useful default that helps finding memory leaks. The emitter.setMaxListeners() method allows the limit to be modified for this specific EventEmitter instance. The value can be set to Infinity (or 0) to indicate an unlimited number of listeners.