58#if FL_PLATFORM_HAS_LARGE_MEMORY
61 bool mIsStreaming =
false;
71 response.set(
"jsonrpc",
"2.0");
74 error.
set(
"code", code);
75 error.
set(
"message", message);
76 response.set(
"error", error);
79 response.set(
"id",
id);
Helper class for sending responses in async/streaming RPC methods.
void set(const fl::string &key, const json &value) FL_NO_EXCEPT
static json object() FL_NO_EXCEPT
FastLED's Elegant JSON Library: fl::json
json makeJsonRpcError(int code, const fl::string &message, const json &id) FL_NO_EXCEPT
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
u8 u8 fract8 blur_amount FL_NO_EXCEPT
fl::function< void(fl::JsonStreamWriter &, const fl::json &, const fl::json &)> StreamingRpcHandler
Base definition for an LED controller.
virtual ~CallableHolderBase() FL_NO_EXCEPT=default
TypedCallableHolder(fl::function< Sig > fn) FL_NO_EXCEPT