websocket

command
v0.0.0-...-26209bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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"}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL