Hello realtime (beginner)
Connect over WebSocket and send a single text message. The simplest end-to-end realtime flow.
What this example does
Authenticate with your app credentials
Open a WebSocket and complete the handshake
Send
"Hello from DNotifier!"to another user idLog any incoming messages on
onMessage
Prerequisites
appIdandsecretfrom the dashboardSDK installed β see installation
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
Next steps
Echo bot β reply automatically to incoming messages
Last updated