Real-time chat & messaging
Conversations that never lose a message — even when the network drops.
How it works
Real-time chat & messaging
WebSocket connection
Your mobile app connects to wss://ws.streamche.com/ws with a short-lived user token (5-15 min) issued by your backend. Authentication is verified on every connection.
Idempotent sending
Each message carries an optional client_message_id: resent after a drop, it never creates duplicates (guaranteed by a database uniqueness constraint).
Multi-instance fan-out
Messages are persisted then fanned out via Redis Pub/Sub: every gateway instance relays to subscribed clients. You manage nothing.
Lossless resume
After reconnecting, the client sends its last known event_id: the server replays exactly the missing events, in order.
Attachments
Two-step upload via presigned MinIO URL (25 MB max, MIME allow-list), then attachment to the message. Download via expiring signed link.
Use cases
Built for your products
Concrete advantages
Real-time chat & messaging
Zero message loss
Monotonic event journal + last_event_id resume (PRD CHAT-10).
Duplicate-proof
client_message_id idempotency tested end to end.
Complete
Read receipts, typing indicator, reactions, edit, delete, presence.
Local
Target latency < 150 ms from West Africa, FCFA billing per message (0.01 FCFA).
API call examples
Your first call in a few lines
One API key, three REST calls, and your user is on video. Flutter and JavaScript SDKs included.
curl -X POST https://streamche.com/api/v1/conversations \
-H "Authorization: Bearer $STREAMCHE_KEY" \
-d '{"members":["user-7","support-1"],"type":"direct"}'
# → { "id": "01m4…", "type": "direct", "members": ["user-7","support-1"] }
import { StreamcheChat } from "streamche";
const chat = new StreamcheChat({ token: userToken, wsUrl: "wss://ws.streamche.com/ws" });
await chat.connect();
await chat.subscribe(conversationId);
chat.send(conversationId, "Hello!", { clientMessageId: "m-42" });
chat.on("message.created", (event) => render(event.message));
final chat = StreamcheChat(token: userToken, wsUrl: userToken.wsUrl); await chat.connect(); await chat.subscribe(conversationId); chat.send(conversationId, "Seen!", clientMessageId: "m-43"); chat.setTyping(conversationId); chat.markRead(conversationId, lastMessageId);
Related features
site.nav.rtc
Reliable videoconferencing on West African mobile networks — without writing a media server.
site.nav.live
Broadcast live to large audiences from OBS or your mobile — HLS and low-latency WebRTC playback.
site.nav.agents
An AI participant that joins your rooms like a member: French voice support, transcription, moderation — activated by a single API call.
