presence_sdk 0.1.1
presence_sdk: ^0.1.1 copied to clipboard
Dart SDK for the Presence realtime platform. Drop-in chat, notifications, and live presence with WebSocket fan-out and automatic reconnection.
Changelog #
0.1.1 #
Primitives — zero-boilerplate UI integration #
PresenceClient.online/.offline—Stream<String>of subject IDs, no event unwrapping neededPresenceClient.typing(conversationId)— top-level shortcut returningStream<Set<String>>PresenceModule.statusStream(subjectIds)— live-updatingMap<String, bool>seeded from HTTP, updated via WebSocket. Drop into aStreamBuilderfor instant online-member listsPresenceModule.isOnline(subjectId)— single-shotFuture<bool>presence checkChatModule.typingStream(conversationId)— liveStream<Set<String>>of who's typing, no timers to manageChatModule.react(messageId, emoji)— shorthand foraddReactionChatModule.delete(messageId)—DELETE /v1/messages/{id}
0.1.0 #
- Initial release
PresenceClient.connect()— connect with a custom token providerPresenceClient.connectWithCredentials()— connect with client ID + secret (two-step auth handled automatically)ChatModule— conversations, messages, reactions, read receipts, typing indicatorsNotificationsModule— publish, inbox, mark read, live notification streamPresenceModule— watch subjects, online/offline events, heartbeat- Automatic WebSocket reconnection with exponential backoff + jitter
- Broadcast
Stream-based event delivery (compatible withStreamBuilderand Provider)