server

command
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 14 Imported by: 0 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 server is a standalone holt hub. It accepts reverse tunnels from peers on one port and exposes an operator HTTP API on another that reaches those peers by dialing back THROUGH their tunnels — so you can curl a peer that has no listener of its own.

go run ./examples/client-server/server

Then run one or more peers (see ../client) and:

curl localhost:7001/peers                 # who is attached
curl localhost:7001/peers/alice/hello     # reach alice through her tunnel
curl localhost:7001/peers/alice/time

Peers authenticate with a bearer token that maps to their identity; the hub keys tunnels by that authenticated id, never by anything the peer asserts in the handshake.

Jump to

Keyboard shortcuts

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