summaryrefslogtreecommitdiff
path: root/src/inspector_agent.h
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@chromium.org>2017-05-01 13:31:14 -0700
committerEugene Ostroukhov <eostroukhov@chromium.org>2017-05-22 11:18:31 -0700
commit5c26378cb775526fbd71b91c2f9ad5e5fcee9d3e (patch)
tree76f7730f0eff6b62bcb9bfde97346d393889a020 /src/inspector_agent.h
parent3429c90f42c00ba3657f7c8d288843c5062a4bb5 (diff)
downloadnode-new-5c26378cb775526fbd71b91c2f9ad5e5fcee9d3e.tar.gz
inspector: fix process._debugEnd() for inspector
This change ensures that the WebSocket server can be stopped (and restarted if needed) buy calling process._debugEnd. PR-URL: https://github.com/nodejs/node/pull/12777 Fixes: https://github.com/nodejs/node/issues/12559 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r--src/inspector_agent.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h
index a939f6c6ba..c42a40772f 100644
--- a/src/inspector_agent.h
+++ b/src/inspector_agent.h
@@ -51,7 +51,6 @@ class Agent {
bool Start(v8::Platform* platform, const char* path,
const DebugOptions& options);
- bool StartIoThread();
void Stop();
bool IsStarted();
@@ -72,6 +71,13 @@ class Agent {
v8::Local<v8::Context> context,
void* priv);
+ bool StartIoThread(bool wait_for_connect);
+ InspectorIo* io() {
+ return io_.get();
+ }
+ // Can be called from any thread
+ void RequestIoStart();
+
private:
node::Environment* parent_env_;
std::unique_ptr<NodeInspectorClient> inspector_;