> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/something-else/realtime-ble-and-mobile-delivery/realtime-streaming-setup.md).

# How do I set up realtime streaming?

Setup depends on the device. The [BLE connection widget](https://docs.tryterra.co/streaming-api/getting-started) does **not** work for Apple Watch, which uses a custom Bluetooth protocol.

* **Apple Watch**: requires a WatchOS companion app that calls `startStream()` or `startExercise()`. Use `startExercise()` for the highest sampling frequency.
* **BLE devices (Coros, Garmin, etc.)**: once the user connects via the widget, call `startRealtime` with the desired data types and receive updates in the callback.

Two things to keep in mind:

* A **websocket** is only needed to [stream data to your backend](https://docs.tryterra.co/streaming-api/terra-greater-than-your-backend), not for local data types.
* **Realtime streaming is a separate connection** from the standard data-sync authentication.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tryterra.co/faq/help-topics/something-else/realtime-ble-and-mobile-delivery/realtime-streaming-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
