lightgun-poc / lib/protocol / ServerMsg
Interface: ServerMsg
Defined in: lib/protocol.ts:64
v2 additive — the first server→client message: the button config changed, re-fetch buttons.json and re-render the overlay. rev is a per-run monotonic counter: the DataChannel copy is deliberately sent several times (that transport is lossy), so the phone applies only rev > lastSeen. Phone-side parsing lives in transport.js (parseServerMessage) — old phones have no message listener at all and ignore this safely.
Properties
rev
rev:
number
Defined in: lib/protocol.ts:66
type
type:
"buttons"
Defined in: lib/protocol.ts:65