presence_sdk 0.1.1 copy "presence_sdk: ^0.1.1" to clipboard
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 / .offlineStream<String> of subject IDs, no event unwrapping needed
  • PresenceClient.typing(conversationId) — top-level shortcut returning Stream<Set<String>>
  • PresenceModule.statusStream(subjectIds) — live-updating Map<String, bool> seeded from HTTP, updated via WebSocket. Drop into a StreamBuilder for instant online-member lists
  • PresenceModule.isOnline(subjectId) — single-shot Future<bool> presence check
  • ChatModule.typingStream(conversationId) — live Stream<Set<String>> of who's typing, no timers to manage
  • ChatModule.react(messageId, emoji) — shorthand for addReaction
  • ChatModule.delete(messageId)DELETE /v1/messages/{id}

0.1.0 #

  • Initial release
  • PresenceClient.connect() — connect with a custom token provider
  • PresenceClient.connectWithCredentials() — connect with client ID + secret (two-step auth handled automatically)
  • ChatModule — conversations, messages, reactions, read receipts, typing indicators
  • NotificationsModule — publish, inbox, mark read, live notification stream
  • PresenceModule — watch subjects, online/offline events, heartbeat
  • Automatic WebSocket reconnection with exponential backoff + jitter
  • Broadcast Stream-based event delivery (compatible with StreamBuilder and Provider)
0
likes
150
points
172
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart SDK for the Presence realtime platform. Drop-in chat, notifications, and live presence with WebSocket fan-out and automatic reconnection.

Repository (GitHub)

License

MIT (license)

Dependencies

http, web_socket_channel

More

Packages that depend on presence_sdk