peer-client

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 6 Imported by: 0

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`.

Jump to

Keyboard shortcuts

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