MCPcopy Create free account
hub / github.com/FastLED/FastLED / rpc

Method rpc

src/fl/net/http/stream_transport.cpp.hpp:209–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209fl::task::Promise<fl::json> HttpStreamTransport::rpc(const fl::string& method, const fl::json& params) {
210 int id = mNextCallId++;
211 fl::json request = fl::json::object();
212 request.set("jsonrpc", "2.0");
213 request.set("method", method);
214 request.set("params", params);
215 request.set("id", id);
216 return rpc(request);
217}
218
219fl::task::Promise<fl::json> HttpStreamTransport::rpc(const fl::json& fullRequest) {
220 fl::task::Promise<fl::json> p = fl::task::Promise<fl::json>::create();

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 5

createFunction · 0.85
ErrorClass · 0.85
complete_with_errorMethod · 0.80
setMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected