MCPcopy Create free account
hub / github.com/Snapchat/Valdi / sendMessageToFrontend

Method sendMessageToFrontend

valdi/src/valdi/jscore/JSCoreDebuggerProxy.cpp:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void JSDebuggerConnection::sendMessageToFrontend(const Valdi::StringBox& message) {
137 for (const auto& client : _externHost.getConnectedClients()) {
138 auto debuggerConnection = std::dynamic_pointer_cast<DebuggerConnection>(client->getDataListener());
139 if (debuggerConnection != nullptr) {
140 debuggerConnection->submitJson(message.toStringView());
141 }
142 }
143}
144
145void JSDebuggerConnection::setTargetList(const Valdi::StringBox& message) {
146 auto convertedValue = Valdi::jsonToValue(message.toStringView());

Callers

nothing calls this directly

Calls 4

submitJsonMethod · 0.80
getConnectedClientsMethod · 0.45
getDataListenerMethod · 0.45
toStringViewMethod · 0.45

Tested by

no test coverage detected