Echo bot (beginner)
A minimal bot that listens on WebSocket and echoes every text message back to the sender.
What this example does
Connect as a dedicated bot user (e.g.
echo-bot)On each incoming message, parse the payload
Reply with the same text prefixed by
Echo:
Prerequisites
WebSocket transport (
ws)A second client (or the hello realtime example) to send test messages
Language guides
Next steps
1:1 chat — human-to-human chat with history
Last updated