wsrpc is a golang module that implements JSON-RPC 2.0 over WebSocket.
Since WebSocket is full-duplex, wsrpc support two-way procedure call.
Just use the Go toolchain:
go get -u github.com/ArcticLampyrid/wsrpc
This library is licensed under BSD 3-Clause License.
Please see LICENSE for licensing details.
You can use TLDRLegal to see a summary first. (!!!NOT LEGAL ADVICE!!!)