yarn stream-chat 8.7.0
v8.7.0

latest releases: 8.40.9, 8.40.8, 8.40.7...
16 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.