docs: highlight relay integration examples - #855
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 82c764eb78
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| async validate({ credential, request }) { // [!code hl] | ||
| const result = await relay.validate({ credential, request }) // [!code hl] |
There was a problem hiding this comment.
Use block markers for the multi-line hook highlights
The validate hook now highlights two consecutive lines with separate inline markers, and the same pattern is repeated for broadcast. Multi-line highlights must instead wrap the range with // [!code hl:start] and // [!code hl:end]; otherwise this example violates the repository's documented highlighting convention.
AGENTS.md reference: AGENTS.md:L310-L313
Useful? React with 👍 / 👎.
| ## Author a relay | ||
|
|
||
| MPP does not formally define relays. It leaves payment methods, API shapes, and transports such as HTTP, JSON-RPC, and gRPC to you. | ||
| The MPP spec does not formally define relays. It leaves payment methods, API shapes, and transports such as HTTP, JSON-RPC, and gRPC to you. |
There was a problem hiding this comment.
Use the prescribed IETF Specification name
When referring collectively to the normative protocol documents, use the required singular name IETF Specification rather than the newly introduced “MPP spec” label, so this sentence follows the site's specification terminology.
AGENTS.md reference: AGENTS.md:L303-L305
Useful? React with 👍 / 👎.
Motivation
Make the relays guide easier to scan and clarify the value of relay infrastructure.
Summary
Key design considerations