v4.7.0
·
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
insocket-service
. - Added test cases for
client
andserver
.
Improved chat configs
- removed
config.allow_guest_users
inconversation-model
- added
config.allow_chat
andconfig.allow_watch
- added
conversation.canWatch()
andconversation.canChat()
Ban User Support
- Added ban property in `conversation-model.
- Added API functions -
banUsers
,unbanUsers
- Added ListQuery -
ConversationBanListQuery
and addedlist
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
foranonymous
andguest
roles also.