Add a relay ping and backend status to the iOS app

The relay now answers a stateless ping with pong. The Relay card auto-checks on appear and address changes, showing latency or the connection error; this verifies the endpoint speaks the share protocol, not just that a TCP port is open.
This commit is contained in:
2026-10-27 21:59:27 +08:00
parent decaaa2de1
commit bf5d19900c
6 changed files with 248 additions and 1 deletions
+3
View File
@@ -97,6 +97,9 @@ xcrun devicectl device copy from --device <device> \
- The default relay is the project's own `share.tzgyn.dev:9009`; the CLI and
the iOS app both use it. For local transfers, run `share relay` on a Mac and
enter its LAN address (`192.168.x.x:9009`) under Relay in the app.
- The Relay card probes the backend with a stateless protocol ping/pong and
shows the latency or the connection error; it re-checks when the address
changes and can be refreshed manually.
## Notes