Fold the session's closed and ended flags into one lifecycle state #41

Merged
lilleman merged 3 commits from session-owns-bind into main 2026-09-28 02:52:33 +02:00
Showing only changes of commit b0b7404477 - Show all commits
+2 -1
View File
@@ -88,7 +88,8 @@ src/
Imports point one way: `defs` knows nothing above it but `result.ts`, `pdu` uses `defs`, `session`
uses `pdu`, and `client`/`server` use `session`. The ways back up are the `Session` handed to
`createSms()` and to the hooks `session-options.ts` types, both imported as a type only.
`createSms()`, and to `OnRequest` and `onConnected` in `session-options.ts`, all imported as a type
only.
**Parameter order is wire order.** The key order inside `cmds.*.params` is the order the fields are
written to and read from the buffer. Never sort those alphabetically — the alphabetical-ordering