stream-chat
Advanced tools
Changelog
Augest 12, 2021 - 4.0.0
From now on client.connectUser()
should be awaited #747. All instances of connectUser()
should be changed to:
await connectUser();
// or
connectUser().then();
// ....
// queryChannels and other methods should be called after promosie is resolved
The behavior is now improved for poor connections and connectUser
retries to establish the connection before throwing an error. Make sure to handle the failure gracefully and do not proceed to query channels or other methods until connectUser
resolves.
queryChannels
options to skip initialization of certain channels #743 #740Changelog
July 28, 2021 - 3.13.0
client.activeChannels
when its deleted on backend #728client.channel(channelType, channelId)
callAdded following enpoints to client:
createSegment
getSegment
listSegments
updateSegment
deleteSegment
createCampaign
getCampaign
listCampaigns
updateCampaign
deleteCampaign
scheduleCampaign
stopCampaign
resumeCampaign
testCampaign
Removed target user id from payload on client.sendUserCustomEvent
function 8bfcca3
Added grant
field types to AppSettings 991b8118
Changelog
July 13, 2021 - 3.12.0
Updates to client.search()
and channel.search()
endpoint #677
next
and previous
parameters to get the next/previous page of resultsnext
parameterAdded new channel.assignRoles
method for assigning custom roles to the channel members (#692)
Switched pinMessage
and unpinMessage
to partial update (#712)
Changelog
May 21, 2021 - 3.10.0
client.partialUpdateMessage()
to partially update messages #576client.queryMessageFlags()
to query flagged messages #676client.createToken
add support to have iat
claim while generating tokens #674client.revokeTokens()
method to revoke/unrevoke tokens on an application level #674client.revokeUserToken()
method to revoke/unrevoke tokens on user level #674client.revokenUsersToken()
method to revoke/unrevoke tokens for multiple users at once #674Changelog
March 29, 2021 - 3.8.0
user.deleted
event is received, mark messages from corresponding user as deleted.user.updated
event is received, update references of corresponding user in messages. const client = StreamChat.getInstance(apiKey, {
httpsAgent: new https.Agent({
keepAlive: true,
keepAliveMsecs: 6000,
});
})