# Realtime guides

> Authorize viewers, render updates in React, stream AI output, and subscribe from your server.

These guides build on the [Quick start](/docs-markdown/realtime/quick-start). Each one covers a single task from start to finish.

- [Subscription tokens](/docs-markdown/realtime/guides/subscription-tokens) authorizes each viewer on your server and scopes the browser to one channel and its topics.
- [React hooks](/docs-markdown/realtime/guides/react-hooks) renders typed messages with `useRealtime` and explains its options.
- [Stream AI responses](/docs-markdown/realtime/guides/stream-ai-responses) shows a model's answer token by token and publishes the final result as a durable step.
- [Server-side subscriptions](/docs-markdown/realtime/guides/server-side-subscriptions) reads messages in server code and forwards them over Server-Sent Events.

## Ask a person to approve work

A function can pause until a person approves or rejects its work. Realtime shows the request; an event carries the decision back.

1. Publish the review request to a channel the reviewer can read.
2. Wait with [`step.waitForEvent()`](/docs-markdown/durable-execution/primitives/step-waitforevent), matching on a request ID and setting a timeout.
3. When the reviewer acts, your app sends a confirmation event with the same request ID, and the function continues.

Authorize the reviewer before you mint their subscription token and again before you accept the confirmation event. See [Human in the loop](/docs-markdown/durable-execution/durable-agents/human-in-the-loop) for a complete example.

## More examples

[Realtime examples](/docs-markdown/examples/realtime) include single-run subscriptions, multi-channel fanout, and human-in-the-loop flows.

## Next steps

- [Channels and topics](/docs-markdown/realtime/channels-and-topics) explains channel names, topics, and schemas.
- [Reference](/docs-markdown/realtime/reference) lists every Realtime API.
- [Troubleshooting](/docs-markdown/realtime/troubleshooting) helps diagnose connection and delivery problems.