reqresp-batch.js 464 B

12345678
  1. // There is no response for all-notification batches.
  2. --> [{"jsonrpc":"2.0","method":"test_echo","params":["x",99]}]
  3. // This test checks regular batch calls.
  4. --> [{"jsonrpc":"2.0","id":2,"method":"test_echo","params":[]}, {"jsonrpc":"2.0","id": 3,"method":"test_echo","params":["x",3]}]
  5. <-- [{"jsonrpc":"2.0","id":2,"error":{"code":-32602,"message":"missing value for required argument 0"}},{"jsonrpc":"2.0","id":3,"result":{"String":"x","Int":3,"Args":null}}]