FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setResponseStreamSink()

void fl::Server::setResponseStreamSink ( ResponseStreamSink sink)

Set streaming response sink callback.

The callback is invoked once per complete streamed JSON document. It owns transport framing such as serial prefixes and trailing newlines.

Definition at line 33 of file server.cpp.hpp.

33 {
34#if FL_PLATFORM_HAS_LARGE_MEMORY
35 mResponseStreamSink = fl::move(sink);
36#else
37 (void)sink;
38#endif
39}
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:30

References fl::FL_NO_EXCEPT, and fl::adl_barrier::move().

Referenced by fl::Remote::Remote(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: