Skip to content

v4.7.0

Compare
Choose a tag to compare
@abhishekbadoni-bigstep abhishekbadoni-bigstep released this 21 May 09:09
· 2 commits to master since this release

Added Private Key support in SDK

  • Added Server class and exported it everywhere.
  • Added connect, setCurrentUser, getCurrentUser, disconnect & createAccessToken in server class.
  • Added option autoSubscribeSocketEvents in socket-service.
  • Added test cases for client and server.

Improved chat configs

  • removed config.allow_guest_users in conversation-model
  • added config.allow_chat and config.allow_watch
  • added conversation.canWatch() and conversation.canChat()

Ban User Support

  • Added ban property in `conversation-model.
  • Added API functions - banUsers, unbanUsers
  • Added ListQuery -ConversationBanListQuery and added list function in it.
  • Added user.conversation_ban_updated event for ban/unban.
  • Added addEvent function for custom event add(not currently used now but did this for symmetry)

Socket Improvements

  • Added option allowUserPresenceEvents while initializing with default true
  • Added allowedRole key for each socket event and added validations as per those.
  • allowed subscribeAll for anonymous and guest roles also.