client

command
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command client is a standalone holt peer. It dials the hub, authenticates with a bearer token, and serves an HTTP handler back over the reverse tunnel — while listening on nothing itself. The hub (and anyone curling its proxy) can then reach this peer's handler through the tunnel.

go run ./examples/authenticated/client --token tok-alice
go run ./examples/authenticated/client --token tok-bob --hub ws://127.0.0.1:7200

The peer keeps running until Ctrl-C; it redials automatically if the hub restarts. Try an unknown token: the hub answers 401 at the upgrade and the peer never attaches.

Jump to

Keyboard shortcuts

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