rasel_chatting_sdk 0.1.7 copy "rasel_chatting_sdk: ^0.1.7" to clipboard
rasel_chatting_sdk: ^0.1.7 copied to clipboard

Flutter/Dart client for the Rasel Chatting SDK — REST API, WebSocket chat, groups, media, reactions, search, and push device registration.

0.1.7 #

  • Hardened message list JSON parsing: tolerate numeric pagination fields, non-boolean hasMore/isDeleted, and attachments missing name or with invalid shapes (skipped instead of failing the whole page).

0.1.6 #

  • Added employer account support: EMPLOYER users can sign in via login (same endpoint as chat users) and access all tenant groups like tenant admins.
  • ChatMessage now exposes senderRealName — the actual staff sender name when the API masks senderName as "Admin" for end users.
  • MessageSenderBadge.employer — employer messages use the employer badge; clients should treat employer like tenant_admin for end-user display.

0.1.5 #

  • TypingEvent now exposes userRole (the typing user's role, e.g. USER for tenant admins) so clients can label tenant-admin typing indicators distinctly.

0.1.4 #

  • AuthUser now exposes avatarUrl (parsed from the server) plus a copyWith helper, and AuthSession gains a copyWith for swapping the user.
  • Added ChattingSdk.updateProfile(accessToken, avatarUrl: ..., name: ...) to update the current user's avatar and/or display name. avatarUrl is now optional: omit it to leave the avatar unchanged, or pass null to clear it. Refreshes the cached session.
  • ChatMessage now exposes editedAt and isDeleted (deleted messages arrive as tombstones with empty content), and copyWith covers content, editedAt, and isDeleted.
  • Added message edit/delete: ChattingSdk.editMessage(...) and deleteMessage(...) (REST), plus ChatSocket.editMessage(...) / deleteMessage(...) and an onMessageUpdated listener for real-time edit/delete (chat:message:update).
  • Added message reactions: ChatMessage.reactions (a MessageReaction list of emoji + userIds), ChattingSdk.addReaction(...) / removeReaction(...) (REST), and ChatSocket.reactMessage(...) / unreactMessage(...) for real-time delivery (reuses the onMessageUpdated listener).
  • Added ChattingSdk.searchMessages(accessToken, groupId, query) for server-side, case-insensitive search within a conversation.
  • Added push notifications: AuthUser.notificationsEnabled, ChattingSdk.updateProfile(..., notificationsEnabled: ...) to toggle the preference, and ChattingSdk.registerDevice(accessToken, token, platform: ...) / unregisterDevice(accessToken, token) to register a device push token (from firebase_messaging or another provider) so the backend can notify offline users.
  • Added AuthUser.bio and ChatGroupMember.bio, plus ChattingSdk.updateProfile(..., bio: ..., clearBio: true) to set or clear a profile bio (max 160 characters on the server).

0.1.3 #

  • MessageAttachment now exposes width, height, originalSize, and compressedSize, plus an aspectRatio helper so clients can render media at its true aspect ratio, and a copyWith that preserves those dimensions when enriching an attachment (e.g. adding a thumbnail or duration).
  • ChatMessage now exposes clientMessageId (for optimistic-send reconciliation), senderEmail, senderAvatarUrl, and senderBadge (tenant_admin / group_admin), and gains a copyWith helper.
  • Added ChattingSdk.getGroup(accessToken, groupId) to fetch a single group.

0.1.2 #

  • Typing events now include optional sender display metadata (userName and avatarUrl) for richer typing indicators.

0.1.1 #

  • File uploads now send a proper Content-Type (inferred from the file extension) instead of application/octet-stream. This lets the server correctly classify images, videos, audio, and PDFs and generate thumbnails (attachment.thumbnailUrl).

0.1.0 #

  • Initial release on pub.dev as rasel_chatting_sdk.
  • REST API client: auth, groups, messages, file upload.
  • WebSocket real-time chat via ChatSocket.
  • English and Arabic i18n support.
1
likes
140
points
407
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter/Dart client for the Rasel Chatting SDK — REST API, WebSocket chat, groups, media, reactions, search, and push device registration.

Homepage
Repository (GitLab)
View/report issues

Topics

#chat #messaging #websocket #realtime #sdk

License

MIT (license)

Dependencies

http, http_parser, socket_io_client

More

Packages that depend on rasel_chatting_sdk