63 response.set(
"jsonrpc",
"2.0");
66 error.
set(
"code", code);
67 error.
set(
"message", message);
68 response.set(
"error", error);
71 response.set(
"id",
id);
Helper class for sending responses in async/streaming RPC methods.
void set(const fl::string &key, const json &value) FL_NOEXCEPT
static json object() FL_NOEXCEPT
FastLED's Elegant JSON Library: fl::json
json makeJsonRpcError(int code, const fl::string &message, const json &id)
Compile-time linker keep-alive hook for a single fl::Bus.
fl::shared_ptr< ErasedInvoker > mInvoker
fl::function< void(ResponseSend &, const json &)> mResponseAwareFn
fl::shared_ptr< ErasedSchemaGenerator > mSchemaGenerator
fl::shared_ptr< CallableHolderBase > mTypedCallable
fl::vector< fl::string > mTags
Base definition for an LED controller.
virtual ~CallableHolderBase() FL_NOEXCEPT=default
TypedCallableHolder(fl::function< Sig > fn)