Package-level declarations
LAN multiplayer: the line-delimited JSON protocol, NSD discovery, TCP sessions, aliases, session codes and QR join links.
Types
Link copied to clipboard
Messages exchanged between two devices, one JSON object per line.
Link copied to clipboard
One peer-to-peer connection over the local network. The host opens a TCP server socket and advertises it with NSD (mDNS); the joiner discovers it (or types the IP) and connects. No data leaves the LAN and there is no server.
Link copied to clipboard
Link copied to clipboard
object SessionCode
Encodes an IPv4 address and port into a short, shareable code (Crockford base32, e.g. "K7Q2M-9XZ4P") for joining by hand when discovery is blocked — without showing the address.