docs(architecture): the live-sync socket is 229 lines, not the 140 the section was written at #2363

Merged
jaylouisw merged 1 commit from docs/1121-0417 into main 2026-11-21 04:37:56 +00:00
Owner

docs/ARCHITECTURE.md section The live-sync socket said server/ws.js is "about 140 lines". Measured at this tree: wc -l server/ws.js = 229 (176 non-comment lines).

The sentence was written in 6bc3e511, when the file was 181 lines total / 144 code lines - so "about 140" was a code-line count that the same commit's 73 added lines had already outgrown. 8eb6c10c (the #1527 Origin check) took it to 229, and the number was never revisited.

Change: one number in one sentence, 140 -> 230 (about kept, since 229 is the reading). The behaviour described beside it (one client message, E_NO_TOPOLOGY / E_UNKNOWN_TYPE / E_BAD_MESSAGE, 1002/1009 framings, half-open end) was checked against server/ws.js and server/index.js (1478-1502) and is unchanged.

Guards, before and after: scripts/syntax-check.js 514 files OK; docs-show-commands 73 forms / 146 commands / 96 device refusals, 7 passed; docs-cli-transcript 9 passed; help-completeness 8 passed (102 advertised commands, 19 mechanisms, 16 show views); help-key-works-in-every-prompt 10 passed; doc-catalog-counts 43 passed; check-control-bytes clean. No test pins a line count, so nothing moved.

`docs/ARCHITECTURE.md` section *The live-sync socket* said `server/ws.js` is "about 140 lines". Measured at this tree: `wc -l server/ws.js` = **229** (176 non-comment lines). The sentence was written in 6bc3e511, when the file was 181 lines total / 144 code lines - so "about 140" was a code-line count that the same commit's 73 added lines had already outgrown. 8eb6c10c (the #1527 Origin check) took it to 229, and the number was never revisited. Change: one number in one sentence, 140 -> 230 (`about` kept, since 229 is the reading). The behaviour described beside it (one client message, `E_NO_TOPOLOGY` / `E_UNKNOWN_TYPE` / `E_BAD_MESSAGE`, 1002/1009 framings, half-open `end`) was checked against `server/ws.js` and `server/index.js` (1478-1502) and is unchanged. Guards, before and after: `scripts/syntax-check.js` 514 files OK; docs-show-commands 73 forms / 146 commands / 96 device refusals, 7 passed; docs-cli-transcript 9 passed; help-completeness 8 passed (102 advertised commands, 19 mechanisms, 16 show views); help-key-works-in-every-prompt 10 passed; doc-catalog-counts 43 passed; check-control-bytes clean. No test pins a line count, so nothing moved.
docs(architecture): the socket is 229 lines, not the 140 its section was written at (#1313, #1629)
All checks were successful
CI / Classify the change (pull_request) Successful in 22s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 19s
CI / Server smoke and Docker build (pull_request) Has been skipped
CI / Test (Node 22) (pull_request) Successful in 1m4s
CI / Test (Node 20) (pull_request) Successful in 1m7s
CI / Test (Node 18) (pull_request) Successful in 1m8s
CI / Arm auto-merge (pull_request) Successful in 4s
86b48c87cd
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-21 04:21:49 +00:00
jaylouisw deleted branch docs/1121-0417 2026-11-21 04:37:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge!2363
No description provided.