# Realtime SSE and WebSockets

> Author OpenAPI SSE streams and AsyncAPI WebSocket channels with scenarios, replay, proxying, and traffic timelines.

- Canonical URL: https://dotmock.com/docs/guides/realtime
- Capability status: Limited
- Last verified: 2026-07-24
- Status boundary: UTF-8 text and JSON workflows are available. Binary WebSocket application messages are rejected with close code 1003.

## Prerequisites
- A DotMock workspace you can access
- The API ID in $API_ID and its published runtime URL in $MOCK_URL when the example calls the mock

## In this guide
- Keep each transport in its native contract
- Use deterministic connection scenarios
- Connect browser-native clients safely
- Resume and replay the exact connection
- Inspect bounded mock and proxy sessions

## Verified boundaries
- Binary WebSocket application payloads are not supported.
- GraphQL subscriptions and LLM streams use their protocol-specific runtimes.

Read the canonical guide for its complete examples and expected results: https://dotmock.com/docs/guides/realtime
