pub fn decode_client(line: &str) -> Result<ClientMessage, String>Expand description
What: Reads and checks one client line. Why: The service trusts nothing from a socket: sizes, names, paths, modes and the object names are all checked.
In TS you’d write (pseudocode):
decodeClient(line) // throws on anything that is not a well-formed message