MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / invokeRemote

Method invokeRemote

source/game/StarTeamClient.cpp:213–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void TeamClient::invokeRemote(String const& method, Json const& args, function<void(Json const&)> responseFunction) {
214 auto promise = m_clientContext->rpcInterface()->invokeRemote(method, args);
215 m_pendingResponses.append({std::move(promise), std::move(responseFunction)});
216}
217
218void TeamClient::handleRpcResponses() {
219 List<RpcResponseHandler> stillPendingResponses;

Callers 2

applyShipUpgradesMethod · 0.45
makePlayerCallbacksMethod · 0.45

Calls 2

rpcInterfaceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected