Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Dec 24, 2024
1 parent 64a2c46 commit ede6898
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ void socket::handle_message(const EmscriptenWebSocketMessageEvent *event) {

if (auto rpc = j.value("rpc", json::object()); !rpc.empty() && rpc.contains("response")) {
auto response = rpc.at("response");
invoke(
std::to_string(response.at("id").get<uint64_t>()),
response.at("result").dump()
);
if (response.contains(result)) {
invoke(
std::to_string(response.at("id").get<uint64_t>()),
response.at("result").dump()
);
}
return;
}
}
Expand Down

0 comments on commit ede6898

Please sign in to comment.