yarn stream-chat 8.7.0
v8.7.0

latest releases: 8.43.0, 8.42.0, 8.41.1...
18 months ago

8.7.0 (2023-05-17)

Feature

New api endpoint for unread count #1117
This endpoint is not enabled for every org, and if needed can be requested by getting in touch with support@getstream.io

On client side

const client = StreamChat.getInstance('key');
client._setToken({ id: 'vishal' }, 'my_token');
const response = await client.getUnreadCount();

Server side

const client = StreamChat.getInstance('key', 'secret');
const response = await client.getUnreadCount('vishal');

Don't miss a new stream-chat release

NewReleases is sending notifications on new releases.