Skip to main content

Crate deno_inspector_server

Crate deno_inspector_server 

Source

Structs§

InspectPublishUid
Options for controlling where the inspector WebSocket URL is published. Mirrors Node.js –inspect-publish-uid behavior.
InspectorInfo
Inspector information that is sent from the isolate thread to the server thread when a new inspector is created.
InspectorServer
Websocket server that is used to proxy connections from devtools to the inspector.
InspectorServerUrl
URL of the inspector server for a runtime instance. This is used to check if the inspector is enabled and to get the WebSocket URL for connecting to the debugger.
MainInspectorSessionChannel
Channel for forwarding worker inspector session proxies to the main runtime. Workers send their InspectorSessionProxy through this channel to establish bidirectional debugging communication with the main inspector session.

Enums§

InspectorServerError

Functions§

create_inspector_server
Creates a global inspector server at the given address with the given name. Returns a reference to the server if created successfully, or the existing server if one was already created (ignoring the provided parameters).
get_inspector_server
Returns the global inspector server if it has been created.
notify_restart
Notifies all connected /ws/events clients that a restart is about to occur.
stop_inspector_server
Stops the global inspector server if it exists. This abruptly closes all pending connections and deregisters all inspectors. The server continues to run and can accept new connections/registrations.