MCPcopy Create free account
hub / github.com/NativeScript/android / disconnect

Method disconnect

test-app/runtime/src/main/cpp/JsV8InspectorClient.cpp:90–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void JsV8InspectorClient::disconnect() {
91 if (connection_ == nullptr) {
92 return;
93 }
94
95 v8::Locker locker(isolate_);
96 Isolate::Scope isolate_scope(isolate_);
97 v8::HandleScope handleScope(isolate_);
98
99 session_->resume();
100 session_.reset();
101
102 JEnv env;
103 env.DeleteGlobalRef(connection_);
104 connection_ = nullptr;
105 isConnected_ = false;
106
107 createInspectorSession();
108}
109
110
111void JsV8InspectorClient::dispatchMessage(const std::string& message) {

Calls 3

resumeMethod · 0.80
DeleteGlobalRefMethod · 0.80
resetMethod · 0.65

Tested by

no test coverage detected