1:1 chat (intermediate)
Build a simple two-user chat: realtime delivery over WebSocket plus optional chat history retrieval.
What this example does
Connect two users (
user-alice,user-bob) on WebSocketSend messages with
saveHistory: true(default)Fetch conversation history with
fetchChatHistory()Display messages in
onMessageas they arrive
Prerequisites
WebSocket transport
Familiarity with hello realtime
Architecture
user-alice ββsend()ββ> DNotifier ββonMessageββ> user-bob
^ |
βββββββββββββ send() βββββββββββββββββββββLanguage guides
Related docs
Last updated