mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Let RPC handle responses too
This commit is contained in:
1 parent
f474a31484
commit
b73022096d
4 files changed
+63
-20
No files matched your search
@@ -2979,6 +2979,10 @@ Parameters:
|
||||
- `handler` - the RPC function performing the action for this method
|
||||
- `handler_data` - Arbitrary function data
|
||||
|
||||
<span class="badge bg-info">NOTE:</span>
|
||||
if `method_pattern` is an empty string, this handler will be called to process
|
||||
JSON-RPC responses. Handling responses might be necessary if the JSON requests
|
||||
are initiated by both sides.
|
||||
|
||||
Usage example:
|
||||
|
||||
|
||||
Reference in new issue
Block a user