Skip to content

typescript: the lockstep page follows the Protocols guide's Mail example - #190

Merged
Kinflou merged 1 commit into
mainfrom
docs/typescript-lockstep-mail
Nov 15, 2026
Merged

Kinflou merged 1 commit into
mainfrom
docs/typescript-lockstep-mail

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 15, 2026

Copy link
Copy Markdown
Member

Rewrites docs/docs/languages/typescript/client-and-server.md from its Chat protocol to the Protocols guide's Mail example, so it matches the Rust lockstep page and the golden both are now quoted from.

What changed

  • The schema, the "What codegen emits" snippet, the explanation bullets and the connect / error / serve examples now use Mail (send_message with @timeout_ms = 1000, fetch_inbox, RecipientNotFound). The generated snippet is quoted from the new TypeScript lockstep golden in conformance: goldens for the default connection and the lockstep framing generation#154, with only /* … */ / // … trims.
  • The one-way note example is gone, because Mail has no one-way function.
  • One new sentence says the TypeScript client does not apply @timeout_ms (the golden makes a plain call; the Rust client passes it to call_with_timeout).
  • The bigint bullet no longer uses seq (Message has no u64); it points at IR_HASH and says what a u64 field would be.

Rust page

I checked the Rust page's codegen snippet line by line against the new Rust lockstep golden (generation#154): every line matches, in order, with only the /* … */ and // … trims, and IR_HASH (0x7ea94b595fcf4393) is the golden's. No change to the Rust page was needed.

Depends on generation#154 for the golden the snippets quote; that PR is a draft.

The page showed a Chat protocol that matched no golden. It now shows Mail
(send_message, fetch_inbox, RecipientNotFound) and the TypeScript output
generation's lockstep golden pins, as the Rust page already does.
@Kinflou
Kinflou marked this pull request as ready for review November 15, 2026 14:15
@Kinflou
Kinflou merged commit ddf140e into main Nov 15, 2026
7 checks passed
@Kinflou
Kinflou deleted the docs/typescript-lockstep-mail branch November 17, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant