> 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/examples/hello-realtime.md).

# Hello realtime (beginner)

Connect over WebSocket and send a single text message. The simplest end-to-end realtime flow.

## What this example does

1. Authenticate with your app credentials
2. Open a WebSocket and complete the handshake
3. Send `"Hello from DNotifier!"` to another user id
4. Log any incoming messages on `onMessage`

## Prerequisites

* `appId` and `secret` from the [dashboard](https://app.dnotifier.com)
* SDK installed — see [installation](https://github.com/smartguy6666/dnotifier-sdk/blob/main/docs/examples/getting-started/installation/README.md)

## Run with two terminals

Use two different `userId` values (e.g. `user-alice` and `user-bob`). Start both clients, then send from one — the other receives on `onMessage`.

## Language guides

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

## Next steps

* [Echo bot](https://github.com/smartguy6666/dnotifier-sdk/blob/main/docs/examples/hello-realtime/echo-bot/README.md) — reply automatically to incoming messages
* [Your first message guide](https://github.com/smartguy6666/dnotifier-sdk/blob/main/docs/examples/getting-started/first-message/README.md)
