Documentation language: English only (the app UI, README and user guide are available in 8 languages).
CUPLAJ1|<hub name>|<tcp port>|<locked 0/1>. Clients hold a MulticastLock while listening. Typing the hub address by hand always works.type:1 byte | length:4 bytes big‑endian | payload. Maximum payload 200 000 bytes; larger frames close the connection.
type 1 — JSON (UTF‑8 object with a t field).type 2 — audio.[mode:1][pcm], mode 0 call, 1 public address (staff only), 2 to staff. Hub → client: [src:1][pcm], where src is a per‑session source index used by the receiving mixer.Client → hub: {"t":"hello","id":<device id>,"name":…,"role":"spectator|actor|regie","pin":…,"room":…,"tok":<session token>}
Hub → client: {"t":"welcome","number":…,"group":…,"tok":…,"hub":…} or {"t":"denied","why":"bad_room|bad_pin|dup|full"} followed by close.
room is checked if the hub has a room code. pin is required for actor/regie from other devices (the control phone itself connects over loopback). Spectators need no PIN.tok; reconnecting with the same id requires the same tok, otherwise dup — so another phone cannot take over an existing identity.t |
Fields | Meaning |
|---|---|---|
offhook / onhook |
lift / replace the handset | |
dial |
number |
place a call (also used while on a party line) |
answer |
answer a ringing call | |
hangup |
end the call (same effect as onhook) |
|
intervene |
on |
a listener starts/stops speaking into the call |
msg |
to, text |
message to a target |
cue |
to, kind, text |
control only — send a cue |
monitor |
number |
control only — silent listening |
couple / uncouple / autocouple |
a,b / id |
control only — party‑line management |
setnum / setgroup / mute / forget |
id, … |
control only |
opt |
listen, click, peerMsg |
control only — global options |
peers / getlog |
control only — request roster / event log | |
stat |
bat |
battery level (every 60 s) |
Targets (to): all, staff, spectators, actors, num:<number>, id:<device id>, grp:<group>.
Cue kinds: text, vibrate, ring, flash, speaker, era, contact, say, sound, blackout, fakecall. Non‑control senders are ignored for cue.
welcome, denied, line (line, slot, partner), peers (roster for the control), log (event line for the control), msg, cue, dialtone, ringback, busy, unknown, ring (num, name, pat 0 |
1, party), stopring, connected (peer, name, forNum), listening, ended (why: hangup, rejected, noanswer, …), click. |
line N with slots 0 and 1; each subscriber keeps their own number.pat 0 = one long ring, 1 = two short).answer takes the call (forNum tells them which number was called); the other ring stops (stopring).offhook makes them a listener (listening); parties receive a click if enabled.intervene; their audio is mixed to both parties.busy. An unanswered call ends after 40 s (ended/noanswer).monitor any number: it listens without a click.Plain TCP on a trusted local network. The room code and PIN are access gates, not cryptography; the session token prevents identity takeover. Do not run the hub on an untrusted network.