Skip to content

Commit

Permalink
Fix issue using react-native-debugger with react-native-windows (#8344)…
Browse files Browse the repository at this point in the history
… (#8354)

* Fix issue using react-native-debugger with react-native-windows

* Change files
  • Loading branch information
acoates-ms committed Aug 3, 2021
1 parent 09e0578 commit 932058d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Fix issue using react-native-debugger with react-native-windows",
"packageName": "react-native-windows",
"email": "30809111+acoates-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
7 changes: 0 additions & 7 deletions vnext/Shared/Executors/WebSocketJSExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@ void WebSocketJSExecutor::registerBundle(uint32_t bundleId, const std::string &b
std::terminate();
}

void WebSocketJSExecutor::flush() {
folly::dynamic jarray = folly::dynamic::array();
auto calls = Call("flushedQueue", jarray);
if (m_delegate && !IsInError())
m_delegate->callNativeModules(*this, folly::parseJson(std::move(calls)), true);
}

void WebSocketJSExecutor::callFunction(
const std::string &moduleId,
const std::string &methodId,
Expand Down
1 change: 0 additions & 1 deletion vnext/Shared/Executors/WebSocketJSExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class WebSocketJSExecutor : public facebook::react::JSExecutor,
std::string Call(const std::string &methodName, folly::dynamic &arguments);
std::future<std::string> SendMessageAsync(int requestId, const std::string &message);
void OnMessageReceived(const std::string &msg);
void flush();

void SetState(State state) noexcept {
m_state = state;
Expand Down

0 comments on commit 932058d

Please sign in to comment.