aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/testdata/revcall2.js
blob: acab46551ec671ab7e5436a84301aa35cd32e8ea (plain) (blame)
1
2
3
4
5
6
7
// This test checks reverse calls.

--> {"jsonrpc":"2.0","id":2,"method":"test_callMeBackLater","params":["foo",[1]]}
<-- {"jsonrpc":"2.0","id":2,"result":null}
<-- {"jsonrpc":"2.0","id":1,"method":"foo","params":[1]}
--> {"jsonrpc":"2.0","id":1,"result":"my result"}