Documentation ¶
Overview ¶
Program websocket is an example of jsonrpc2 using websocket. It implements an sum rpc service that will sum the params given to it.
This can be tested using https://github.com/oliver006/ws-client:
$ ws-client ws://localhost:8080 [00:00] >> {"jsonrpc": "2.0", "method": "sum", "params": {"numbers": [1, 2, 3]}, "id": "1"} [00:00] << {"jsonrpc": "2.0", "result": 6, "id": "1"}
Click to show internal directories.
Click to hide internal directories.