Register async method with ResponseSend& parameter (for ASYNC/ASYNC_STREAM modes) Signature: void(ResponseSend&, const json&) The ResponseSend& parameter provides send(), sendUpdate(), sendFinal() methods
| 96 | /// Signature: void(ResponseSend&, const json&) |
| 97 | /// The ResponseSend& parameter provides send(), sendUpdate(), sendFinal() methods |
| 98 | void bindAsync(const char* name, |
| 99 | fl::function<void(fl::ResponseSend&, const fl::json&)> fn, |
| 100 | fl::RpcMode mode = fl::RpcMode::ASYNC) { |
| 101 | mRpc.bindAsync(name, fl::move(fn), mode); |
| 102 | } |
| 103 | |
| 104 | /// Get bound method by name for direct C++ invocation |
| 105 | template<class Sig> |
no outgoing calls
no test coverage detected