> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/reference/realtime-methods.md).

# Realtime methods

Methods for live messaging between users, devices, or services over a persistent WebSocket connection. Use `transport: "ws"` for the best realtime experience.

## Methods

| Method         | Description                                                      |
| -------------- | ---------------------------------------------------------------- |
| `send()`       | Send structured JSON payloads (text, image, audio, custom types) |
| `sendBinary()` | Send raw byte buffers without JSON wrapping                      |

## When to use realtime methods

* 1:1 or multi-recipient chat
* Live notifications pushed to `onMessage`
* Binary or large structured payloads with automatic chunking

For AI, RAG, and workflows, prefer `transport: "http"` — see [Transport matrix](/product-docs/reference/transport-matrix.md).

## Language pages

* [**JavaScript / TypeScript**](/product-docs/reference/realtime-methods/javascript-typescript.md)
* [**Dart / Flutter**](/product-docs/reference/realtime-methods/dart-flutter.md)

## Related

* [Chat methods](/product-docs/reference/chat-methods.md) — history fetch/delete
* [Types & payloads](/product-docs/reference/types-and-payloads.md) — message shapes
* [Large messages & chunking](/product-docs/realtime-communication/chunking.md)
