Skip to content

peer v0.5.6

Latest

Choose a tag to compare

@caoer caoer released this 17 Nov 10:03
· 2 commits to main since this release

peer v0.5.6 — GPL-3.0. peer status reads the state from the running serve, and peer wait waits on serve's push.

  • peer serve answers serve.sock in the peer directory (mode 0600, page state only) with the state page's records as its live socket holds them, still sealed. peer status reads them from there and sends no request. With no serve on the directory it reads the whole page in one values list (GET /d/<slug>?values=1) instead of one request per record. Its output is unchanged.
  • New: peer wait [--dir D] [--json] [<name>] blocks until the peer's row changes — a message in or out (last message, unread), a state change — or, with no name, until any peer's row or room line changes, then prints what changed. It holds on serve's push: no request and no timer. With no serve on the directory, or when serve stops, it exits 1 at once. Use it to wait instead of running peer status in a loop.

No relay or wire change, no config change, no change to state-page records.