diff options
author | Eugene Ostroukhov <eostroukhov@gmail.com> | 2019-07-03 21:32:31 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-07-06 21:04:03 +0300 |
commit | 17862fca5f6acfad5941ec651769493310a5c571 (patch) | |
tree | 203ae2d3a759a5b47244d1ae048ebbf7997de0f3 /src/inspector_agent.cc | |
parent | 33a8093411e984756869ab03226b21bdecd85795 (diff) |
inspector: reduce InspectorIo API surface
This is a cleanup, allowing for a better separation of concerns.
PR-URL: https://github.com/nodejs/node/pull/28526
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Aleksei Koziatinskii <ak239spb@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/inspector_agent.cc')
-rw-r--r-- | src/inspector_agent.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index aebea4a556f..df6a70d1484 100644 --- a/src/inspector_agent.cc +++ b/src/inspector_agent.cc @@ -977,6 +977,12 @@ std::shared_ptr<WorkerManager> Agent::GetWorkerManager() { return client_->getWorkerManager(); } +std::string Agent::GetWsUrl() const { + if (io_ == nullptr) + return ""; + return io_->GetWsUrl(); +} + SameThreadInspectorSession::~SameThreadInspectorSession() { auto client = client_.lock(); if (client) @@ -990,7 +996,5 @@ void SameThreadInspectorSession::Dispatch( client->dispatchMessageFromFrontend(session_id_, message); } - - } // namespace inspector } // namespace node |