Documentation
¶
Overview ¶
Command peer-client is the host side of a bidirectional JSON-RPC 2.0 connection. It spawns the peer-plugin example as a subprocess, calls its "greet" method, and serves the "progress" callback the plugin invokes mid-call. The host is itself a Peer: it is the Client for "greet" and the Server for "progress".
go build -o /tmp/peer-plugin ./examples/peer-plugin go run ./examples/peer-client /tmp/peer-plugin
With no arguments it runs the sibling example via `go run`.
Click to show internal directories.
Click to hide internal directories.