volorio_chat 0.2.0
volorio_chat: ^0.2.0 copied to clipboard
Volorio Flutter chat primitives built on Volorio RTM.
volorio_chat #
Flutter chat primitives for private messages, group rooms, communities, attachments, replies, and moderation-ready message envelopes.
volorio_chat depends on volorio_rtm, so chat messages are sent through the
active Volorio realtime channel.
Keywords #
Flutter chat SDK, realtime chat, group messaging, community chat, chat attachments, voice room chat, Volorio chat, RTM chat.
Install #
dependencies:
volorio_chat: ^0.2.0
Send a text message #
import 'package:volorio_chat/volorio_chat.dart';
final chat = VolorioChatClient(rtm);
await chat.sendText(
conversationId: 'audio-party-123',
senderId: 'user_123',
text: 'Hello room',
clientMessageId: 'msg_001',
);
Send an attachment #
await chat.sendMessage(
const VolorioChatMessage(
conversationId: 'audio-party-123',
senderId: 'user_123',
text: 'Photo attached',
attachments: [
VolorioChatAttachment(
type: VolorioChatAttachmentType.image,
url: 'https://cdn.example.com/photo.webp',
mimeType: 'image/webp',
),
],
),
);
Entitlements #
Your backend-created session should include:
VolorioProductId.signalingVolorioProductId.chatMau
For end-to-end encrypted chat, use the paid chat_e2ee add-on entitlement when
that Flutter package is enabled.