MCPcopy Create free account
hub / github.com/Clarionos/clarion / send_call

Method send_call

libraries/fc/src/rpc/websocket_api.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57variant websocket_api_connection::send_call(
58 api_id_type api_id,
59 string method_name,
60 variants args /* = variants() */ )
61{
62 auto request = _rpc_state.start_remote_call( "call", {api_id, std::move(method_name), std::move(args) } );
63 _connection.send_message( fc::json::to_string(request) );
64 return _rpc_state.wait_for_response( *request.id );
65}
66
67variant websocket_api_connection::send_callback(
68 uint64_t callback_id,

Callers

nothing calls this directly

Calls 4

send_messageMethod · 0.80
to_stringFunction · 0.50
start_remote_callMethod · 0.45
wait_for_responseMethod · 0.45

Tested by

no test coverage detected