🔔 New: the streamche real-time API is in Beta — free sandbox, your first call in 5 minutes →
💬

Real-time chat & messaging

Conversations that never lose a message — even when the network drops.

How it works

Real-time chat & messaging

 

1

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.

2

Idempotent sending

Each message carries an optional client_message_id: resent after a drop, it never creates duplicates (guaranteed by a database uniqueness constraint).

3

Multi-instance fan-out

Messages are persisted then fanned out via Redis Pub/Sub: every gateway instance relays to subscribed clients. You manage nothing.

4

Lossless resume

After reconnecting, the client sends its last known event_id: the server replays exactly the missing events, in order.

5

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

 

Customer support inside a fintech app Buyer-seller messaging on a marketplace Post-consultation follow-up in healthcare Class groups and online courses Internal social messaging

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.

Create a conversation (backend) · curl
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"] }
Send a message (WebSocket) · javascript
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));
Read receipt + typing · dart
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.

Discover →

site.nav.live

Broadcast live to large audiences from OBS or your mobile — HLS and low-latency WebRTC playback.

Discover →

site.nav.agents

An AI participant that joins your rooms like a member: French voice support, transcription, moderation — activated by a single API call.

Discover →