# LLM streaming

> Test provider-shaped SSE events, token timing, truncation, malformed chunks, disconnects, and WebSocket events.

- Canonical URL: https://dotmock.com/docs/features/llm-streaming
- Capability status: Available
- Last verified: 2026-07-24

## 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
- Choose the protocol your client actually uses
- Stream provider-shaped SSE events
- Make timing part of the scenario
- Describe WebSocket events directly
- Exercise incomplete and invalid streams

## Verified boundaries
- Timing controls are deterministic only when the scenario fixes the relevant latency, rate, and jitter values.

Read the canonical guide for its complete examples and expected results: https://dotmock.com/docs/features/llm-streaming
