Skip to content

N · Networking

Relay’s HTTP API and its typed client: validated at the boundary, with server-sent events and a WebSocket protocol.

# Lesson
1 A typed fetch client
2 Validation at the trust boundary
3 Bun.serve and typed routes
4 Server-sent events and WebSockets with typed messages

Lessons 1 and 2 run in the browser; lessons 3 and 4 start real servers and run in your own project with bun test.